]> www.infradead.org Git - users/jedix/linux-maple.git/commit
IB/ipoib: Filter RX packets before adding pseudo header
authorYuval Shaia <yuval.shaia@oracle.com>
Thu, 6 Sep 2018 11:11:16 +0000 (04:11 -0700)
committerBrian Maly <brian.maly@oracle.com>
Wed, 26 Sep 2018 00:29:29 +0000 (20:29 -0400)
commit8ad25f0efa03f49013df3e5114c3dc75373d3f9d
tree9f14bd8dfacbee1289da0c6948b31bf8387d83e1
parent9a792a4a2a75b138af4b79d1f0502d7a2a2e25b7
IB/ipoib: Filter RX packets before adding pseudo header

IB-ACL filtering is based on SGID (carried in the GRH).
The function skb_add_pseudo_hdr clears the SGID from the header.

Doing filtering after this call has no effect since all packets will drop
for not having SGID in.

Fix this by moving the call to skb_add_pseudo_hdr to be after IB-ACL
filtering while still adjusting skb->data as needed for the filtering.

Orabug: 28655409

Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/infiniband/ulp/ipoib/ipoib_ib.c