]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: hns3: Add STRP_TAGP field support for hardware revision 0x21
authorPeng Li <lipeng321@huawei.com>
Fri, 25 May 2018 18:42:58 +0000 (19:42 +0100)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 18:41:16 +0000 (14:41 -0400)
commit1e8f8bd3c3a60ce5d9120ea067071169162b0bd4
treeda3cd7c00be57171340b4d9a338dfa2cb794d5f6
parentb75b1a567b0bbb1fcde6140f5f8d26156766b48c
net: hns3: Add STRP_TAGP field support for hardware revision 0x21

BugLink: https://bugs.launchpad.net/bugs/1768670
Hardware Revision(0x21) Buffer Descriptor adds a field STRP_TAGP
for vlan stripped processed indication. STRP_TAGP field has 2 bits,
bit 0 is stripped indication of the vlan tag in outer vlan tag
field, bit 1 is stripped indication of the vlan tag in inner vlan
tag field. For each bit, 0 indicates the tag is not stripped and
1 indicates the tag is stripped.

This patch adds STRP_TAGP support for revision(0x21), and does not
change the revision(0x20) action.

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>
(cherry picked from commit 5b5455a9ed5a9d7c26313a353bc2c3c1f6e1f5cb linux-next)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h