RDMA/nes: Fix MSS calculation on RDMA path

Fix the calculation of the MSS for RDMA connections: we need to
allow space in frames for a VLAN tag too.

Signed-off-by: Chien Tung <ctung@neteffect.com>
Signed-off-by: Glenn Streiff <gstreiff@neteffect.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>

authored by Chien Tung and committed by Roland Dreier f2b2b59b dba92d3b

+2 -1
+2 -1
drivers/infiniband/hw/nes/nes_cm.c
··· 40 40 #include <linux/tcp.h> 41 41 #include <linux/init.h> 42 42 #include <linux/if_arp.h> 43 + #include <linux/if_vlan.h> 43 44 #include <linux/notifier.h> 44 45 #include <linux/net.h> 45 46 #include <linux/types.h> ··· 1073 1072 ts = current_kernel_time(); 1074 1073 cm_node->tcp_cntxt.loc_seq_num = htonl(ts.tv_nsec); 1075 1074 cm_node->tcp_cntxt.mss = nesvnic->max_frame_size - sizeof(struct iphdr) - 1076 - sizeof(struct tcphdr) - ETH_HLEN; 1075 + sizeof(struct tcphdr) - ETH_HLEN - VLAN_HLEN; 1077 1076 cm_node->tcp_cntxt.rcv_nxt = 0; 1078 1077 /* get a unique session ID , add thread_id to an upcounter to handle race */ 1079 1078 atomic_inc(&cm_core->node_cnt);