cxgb4: add UDP segmentation offload support
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Fri, 22 Nov 2019 01:00:02 +0000 (06:30 +0530)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Sat, 23 Nov 2019 00:44:40 +0000 (16:44 -0800)
commit1a2a14fbc7e7df35aebb929ed6cdb1fcf238e9d2
treefd54f5f0cbe3120ef5d98b3aa3b62ba549a2c1c7
parent0ed96b46c0ac26ebcdd2ee95c2479ef8cf94bbd6
cxgb4: add UDP segmentation offload support

Implement and export UDP segmentation offload (USO) support for both
NIC and MQPRIO QoS offload Tx path. Update appropriate logic in Tx to
parse GSO info in skb and configure FW_ETH_TX_EO_WR request needed to
perform USO.

v2:
- Remove inline keyword from write_eo_udp_wr() in sge.c. Let the
  compiler decide.

Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/cxgb4/sge.c
drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h