net: hns3: add l4_type check for both ipv4 and ipv6
authorPeng Li <lipeng321@huawei.com>
Thu, 28 Jun 2018 04:12:22 +0000 (12:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Jun 2018 02:06:34 +0000 (11:06 +0900)
commit94c5e532130207f6ecfe0e1afd4ed3495ec1706f
tree4a66e9043d020aaf383a0fde4abc7e46dcdb7a88
parent36cbbdf6439729878271ff15422a643d13f133d4
net: hns3: add l4_type check for both ipv4 and ipv6

HW supports UDP, TCP and SCTP packets checksum for both ipv4 and
ipv6,  but do not support other type packets checksum for ipv4 or
ipv6.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c