OSDN Git Service

octeontx2-af: add parser support for Forward DSA
authorHariprasad Kelam <hkelam@marvell.com>
Tue, 29 Sep 2020 09:28:16 +0000 (11:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Sep 2020 20:12:03 +0000 (13:12 -0700)
commitb61c7261a4999e84d3b02a5ed9b6cb5170305a50
tree7a9f8cd198ad1e108005b94834b81c57b104b533
parent42006910b5eaa36d211e3d7623bd59c1e8c18311
octeontx2-af: add parser support for Forward DSA

Marvell Prestera switches supports distributed switch architecture
by inserting Forward DSA tag of 4 bytes right after ethernet SMAC.
This tag don't have a tpid field.

This patch provides parser and extraction support for the same.
Default ldata extraction profile added for FDSA such that Src_port
is extracted and placed inplace of vlanid field. Like extended DSA
and eDSA tags,a special PKIND of 62 is used for this tag.

Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Acked-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/npc.h
drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h