net: hns3: Add support for tx_accept_tag2 and tx_accept_untag2 config
authorPeng Li <lipeng321@huawei.com>
Fri, 25 May 2018 18:42:57 +0000 (19:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 May 2018 04:04:26 +0000 (00:04 -0400)
commitdcb35ccef85e51cf3ad36acd08c07ec8d9ff9e2a
tree0af98419aeaa2abf7ee9fa8455f3990b04484884
parent846fcc83638f8908a465583fa93f4d6f14161420
net: hns3: Add support for tx_accept_tag2 and tx_accept_untag2 config

HNS3 Hardware can support up to two VLAN tags in transmit leg, the PPP
module can handle the packets based on the tag1 and tag2 config. This
patch adds support for tag2 config for vlan handling

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h