]> www.infradead.org Git - users/jedix/linux-maple.git/commit
IB/ipoib: Check gso size prior to ib_send
authorErez Shitrit <erezsh@mellanox.com>
Wed, 30 Apr 2014 07:45:20 +0000 (10:45 +0300)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 21:45:20 +0000 (14:45 -0700)
commit5a4d4bf69221e823e37e4d80ab62056b4f2e7929
tree859b74ffa6762a32ebf7c55e94872e2ee9af1c17
parent3ba6c8dd1a27b61846db8d36ea9b6300de8b0364
IB/ipoib: Check gso size prior to ib_send

We found that in some cases the kernel sends skb where the
gso field was damaged, and the size of that field was bigger
than the physical mtu, when the HW gets such size it flushes
the qp to error state and all traffic on that interface is
disabled.

In order to avoid such case, i added a check to that field
prior to the ib_send.

Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
(Ported from Mellanox OFED 2.4)

Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
drivers/infiniband/ulp/ipoib/ipoib_ib.c