netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3 net-next] enic: add vxlan offload support
@ 2017-02-08  7:28 Govindarajulu Varadarajan
  2017-02-08  7:28 ` [PATCH 1/3 net-next] enic: add devcmds for vxlan offload Govindarajulu Varadarajan
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Govindarajulu Varadarajan @ 2017-02-08  7:28 UTC (permalink / raw)
  To: davem, netdev; +Cc: benve, Govindarajulu Varadarajan

This series adds vxlan offload support for enic driver. The first
patch adds vxlan devcmd for configuring vxland offload parameters.
Second patch adds ndo_udp_tunnel_add/del and offload on rx path.
There are to modes in which fw supports vxlan offload.

mode 0: fcoe bit is set for encapsulated packet. fcoe_fc_crc_ok is set
if checksum of csum is ok. This bit is or of ip_csum_ok and
tcp_udp_csum_ok

mode 2: BIT(0) in rss_hash is set if it is encapsulated packet.
	BIT(1) is set if outer_ip_csum_ok/
	BIT(2) is set if outer_tcp_csum_ok

Some hw supports only mode 0, some support mode 0 and 2. Driver gets
the supported modes bitmap using get_supported_feature_ver devcmd
and selects the highest mode both driver and fw supports.

Third patch adds offload support on tx path by adding
enic_features_check().

Govindarajulu Varadarajan (3):
  enic: add devcmds for vxlan offload
  enic: add udp_tunnel ndo for vxlan offload
  enic: add vxlan offload on tx path

 drivers/net/ethernet/cisco/enic/enic.h        |   6 +
 drivers/net/ethernet/cisco/enic/enic_main.c   | 282 ++++++++++++++++++++++++--
 drivers/net/ethernet/cisco/enic/vnic_dev.c    |  42 ++++
 drivers/net/ethernet/cisco/enic/vnic_dev.h    |   5 +
 drivers/net/ethernet/cisco/enic/vnic_devcmd.h |  51 +++++
 drivers/net/ethernet/cisco/enic/vnic_enet.h   |   1 +
 6 files changed, 372 insertions(+), 15 deletions(-)

-- 
2.11.0

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-02-08 20:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-08  7:28 [PATCH 0/3 net-next] enic: add vxlan offload support Govindarajulu Varadarajan
2017-02-08  7:28 ` [PATCH 1/3 net-next] enic: add devcmds for vxlan offload Govindarajulu Varadarajan
2017-02-08 19:56   ` David Miller
2017-02-08  7:28 ` [PATCH 2/3 net-next] enic: add udp_tunnel ndo " Govindarajulu Varadarajan
2017-02-08 19:56   ` David Miller
2017-02-08  7:28 ` [PATCH 3/3 net-next] enic: add vxlan offload on tx path Govindarajulu Varadarajan
2017-02-08 19:57   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).