]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-eth: add support for Rx VLAN filtering
authorIonut-robert Aron <ionut-robert.aron@nxp.com>
Mon, 11 Jan 2021 17:07:25 +0000 (19:07 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 14 Jan 2021 03:20:55 +0000 (19:20 -0800)
commit19d16939841f67332bdc73ee4004c066b5ca7974
tree4988236b041c388f8092294b10f9a0a86818b2dd
parent6d0fc53811d89a361a9f51379d1c4874bbf31f4b
dpaa2-eth: add support for Rx VLAN filtering

Declare Rx VLAN filtering as supported and user-changeable only when
there are VLAN filtering entries available on the DPNI object. Even
then, rx-vlan-filtering is by default disabled.
Also, populate the .ndo_vlan_rx_add_vid() and .ndo_vlan_rx_kill_vid()
callbacks for adding and removing a specific VLAN from the VLAN table.

Signed-off-by: Ionut-robert Aron <ionut-robert.aron@nxp.com>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://lore.kernel.org/r/20210111170725.1818218-1-ciorneiioana@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
drivers/net/ethernet/freescale/dpaa2/dpni-cmd.h
drivers/net/ethernet/freescale/dpaa2/dpni.c
drivers/net/ethernet/freescale/dpaa2/dpni.h