From: Bruce Richardson Date: Mon, 17 Feb 2014 20:21:03 +0000 (+0100) Subject: igb: fix dual vlan ethertype X-Git-Tag: spdx-start~11016 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=682d65b8f512ae88b9af362e265324db9e562a35;p=dpdk.git igb: fix dual vlan ethertype Signed-off-by: Bruce Richardson Signed-off-by: David Marchand --- diff --git a/lib/librte_pmd_e1000/igb_ethdev.c b/lib/librte_pmd_e1000/igb_ethdev.c index 77244e60c1..bcb217681b 100644 --- a/lib/librte_pmd_e1000/igb_ethdev.c +++ b/lib/librte_pmd_e1000/igb_ethdev.c @@ -637,7 +637,7 @@ eth_igb_start(struct rte_eth_dev *dev) return (-EIO); } - E1000_WRITE_REG(hw, E1000_VET, ETHER_TYPE_VLAN); + E1000_WRITE_REG(hw, E1000_VET, ETHER_TYPE_VLAN << 16 | ETHER_TYPE_VLAN); ctrl_ext = E1000_READ_REG(hw, E1000_CTRL_EXT); /* Set PF Reset Done bit so PF/VF Mail Ops can work */ @@ -899,7 +899,7 @@ igb_hardware_init(struct e1000_hw *hw) if (diag < 0) return (diag); - E1000_WRITE_REG(hw, E1000_VET, ETHER_TYPE_VLAN); + E1000_WRITE_REG(hw, E1000_VET, ETHER_TYPE_VLAN << 16 | ETHER_TYPE_VLAN); e1000_get_phy_info(hw); e1000_check_for_link(hw);