From: Shaopeng He Date: Mon, 15 Jun 2015 01:26:10 +0000 (+0800) Subject: fm10k: fix mac/vlan filtering X-Git-Tag: spdx-start~9016 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5e73a1269ba0a501138ff82c945faff4106d9d7e;hp=5e73a1269ba0a501138ff82c945faff4106d9d7e;p=dpdk.git fm10k: fix mac/vlan filtering This patch includes 3 changes related to MAC/VLAN address table when the system (e.g. testpmd) is started and closed: - remove default MAC address with fixed VLAN 0 which was for the debug purpose before the MAC/VLAN filter function was implemented. - enable VF MAC/VLAN filter for the first valid MAC address and first valid VLAN ID. This is needed for system (e.g. testpmd) to setup default MAC address and default VLAN for VF. Later attempt to change these default value will be refused by under layer shared code and PF host functions. - un-register any combination of VLAN and MAC address from fm10k switch side MAC table when the system (e.g. testpmd) is closed. Signed-off-by: Shaopeng He Acked-by: Jing Chen Tested-by: Michael Qiu ---