From 682d65b8f512ae88b9af362e265324db9e562a35 Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Mon, 17 Feb 2014 21:21:03 +0100 Subject: [PATCH] igb: fix dual vlan ethertype Signed-off-by: Bruce Richardson Signed-off-by: David Marchand --- lib/librte_pmd_e1000/igb_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.20.1