Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[IB] cm: Add missing break in switch

Add missing "break" in switch statement. Without the break, the
CM ended up always falling through and setting every connection
request to use RC transport, which meant that UC connections
didn't work.

Signed-off-by: Roland Dreier <rolandd@cisco.com>

+1
+1
drivers/infiniband/core/cm_msgs.h
··· 186 186 req_msg->offset40 = cpu_to_be32((be32_to_cpu( 187 187 req_msg->offset40) & 188 188 0xFFFFFFF9) | 0x2); 189 + break; 189 190 default: 190 191 req_msg->offset40 = cpu_to_be32(be32_to_cpu( 191 192 req_msg->offset40) &