linux_dsm_epyc7002/drivers/infiniband/ulp/ipoib
Hans Westgaard Ry 78a50a5e60 IB/ipoib: Add handling for sending of skb with many frags
IPoIB converts skb-fragments to sge adding 1 extra sge when SG is enabled.
Current codepath assumes that the max number of sge a device support
is at least MAX_SKB_FRAGS+1, there is no interaction with upper layers
to limit number of fragments in an skb if a device suports fewer
sges. The assumptions also lead to requesting a fixed number of sge
when IPoIB creates queue-pairs with SG enabled.

A fallback/slowpath is implemented using skb_linearize to
handle cases where the conversion would result in more sges than supported.

Signed-off-by: Hans Westgaard Ry <hans.westgaard.ry@oracle.com>
Reviewed-by: Håkon Bugge <haakon.bugge@oracle.com>
Reviewed-by: Wei Lin Guay <wei.lin.guay@oracle.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2016-03-03 09:49:44 -05:00
..
ipoib_cm.c IB/ipoib: Add handling for sending of skb with many frags 2016-03-03 09:49:44 -05:00
ipoib_ethtool.c IB/ulps: Avoid calling ib_query_device 2015-12-22 14:39:00 -05:00
ipoib_fs.c IPoIB: Remove unnecessary test for NULL before debugfs_remove() 2014-08-12 21:59:54 -07:00
ipoib_ib.c IB/ipoib: Add handling for sending of skb with many frags 2016-03-03 09:49:44 -05:00
ipoib_main.c IB/IPoIB: Fix kernel panic on multicast flow 2016-01-19 12:59:54 -05:00
ipoib_multicast.c IB/ipoib: fix for rare multicast join race condition 2016-02-12 14:53:22 -05:00
ipoib_netlink.c infiniband: make sure the src net is infiniband when create new link 2014-01-03 20:38:56 -05:00
ipoib_verbs.c IB/ipoib: Add handling for sending of skb with many frags 2016-03-03 09:49:44 -05:00
ipoib_vlan.c IB/ipoib: Fix ndo_get_iflink 2015-04-17 15:21:04 -04:00
ipoib.h IB/ipoib: Add handling for sending of skb with many frags 2016-03-03 09:49:44 -05:00
Kconfig kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERT 2011-01-20 17:02:05 -08:00
Makefile IB/ipoib: Add rtnl_link_ops support 2012-09-20 16:49:17 -04:00