linux/drivers/net/ethernet/emulex/benet
Jesse Gross 5f35227ea3 net: Generalize ndo_gso_check to ndo_features_check
GSO isn't the only offload feature with restrictions that
potentially can't be expressed with the current features mechanism.
Checksum is another although it's a general issue that could in
theory apply to anything. Even if it may be possible to
implement these restrictions in other ways, it can result in
duplicate code or inefficient per-packet behavior.

This generalizes ndo_gso_check so that drivers can remove any
features that don't make sense for a given packet, similar to
netif_skb_features(). It also converts existing driver
restrictions to the new format, completing the work that was
done to support tunnel protocols since the issues apply to
checksums as well.

By actually removing features from the set that are used to do
offloading, it solves another problem with the existing
interface. In these cases, GSO would run with the original set
of features and not do anything because it appears that
segmentation is not required.

CC: Tom Herbert <therbert@google.com>
CC: Joe Stringer <joestringer@nicira.com>
CC: Eric Dumazet <edumazet@google.com>
CC: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by:  Tom Herbert <therbert@google.com>
Fixes: 04ffcb255f ("net: Add ndo_gso_check")
Tested-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-12-26 17:20:56 -05:00
..
Kconfig be2net: fix build dependency on VxLAN 2014-04-01 16:25:51 -04:00
Makefile be2net: Add functionality to support RoCE driver 2012-05-08 11:17:47 -07:00
be.h be2net: Export tunnel offloads only when a VxLAN tunnel is created 2014-12-11 14:37:24 -05:00
be_cmds.c be2net: fix alignment on line wrap 2014-09-22 15:01:09 -04:00
be_cmds.h be2net: add speed reporting for 20G-KR interface 2014-09-22 15:01:07 -04:00
be_ethtool.c ethtool: Support for configurable RSS hash function 2014-12-08 21:07:10 -05:00
be_hw.h be2net: Add TX completion error statistics in ethtool 2014-09-02 12:45:59 -07:00
be_main.c net: Generalize ndo_gso_check to ndo_features_check 2014-12-26 17:20:56 -05:00
be_roce.c be2net: add blank line after declarations 2014-09-22 15:01:08 -04:00
be_roce.h be2net: Issue shutdown event to ocrdma driver 2014-08-01 15:07:36 -07:00