OSDN Git Service

Merge branch 'enic-vxlan-offload'
authorDavid S. Miller <davem@davemloft.net>
Thu, 9 Feb 2017 22:24:30 +0000 (17:24 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Feb 2017 22:24:30 +0000 (17:24 -0500)
commitb66a8043d0baa9818a407ed857eada5cb21cd9bb
treea6ed185caf60e4db08ef708993c6a4eaac1129b9
parentc0e4dadb3494bd0bf4fdeac341509deac8f4b47c
parent9c744d10870c5d6f36264be39bf5de87447f1052
Merge branch 'enic-vxlan-offload'

Govindarajulu Varadarajan says:

====================
enic: add vxlan offload support

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().

v2: Order local variable declarations from longest to shortest line,
    on all three patches.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>