linux-imx/net
Wei Fang cdd82c7c71 LF-14260-9 net: dsa: add NETC switch tag support i.MX94
The NXP switch tag is a proprietary header added to frames after the
source MAC address. The switch tag has 3 types, and different types
have multiple subtypes, the details are as follows.

- Forward NXP switch tag (Type=0) – Represents forwarded frames.
  - SubType=0 - Normal frame processing.

- To_Port NXP switch tag (Type=1) – Represents frames that are to be
  sent to a specific switch port.
  - SubType=0 - No request to perform timestamping.
  - SubType=1 - Request to perform one-step timestamping.
  - SubType=2 - Request to perform two-step timestamping.

- To_Host NXP switch tag (Type=2) – Represents frames redirected or
  copied to the switch management port.
  - SubType=0 - Received frames redirected or copied to the switch
    management port.
  - SubType=1 - Received frames redirected or copied to the switch
    management port with captured timestamp at the switch port where
    the frame was received.
  - SubType=2 - Transmit timestamp response (two-step timestamping).

Therefore, the length of different type switch tag is different, the
minimum length is 6 bytes, the maximum length is 14 bytes.

Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Clark Wang <xiaoning.wang@nxp.com>
2025-02-27 17:57:43 +08:00
..
6lowpan
9p 9p/xen: fix release of IRQ 2024-12-05 14:03:06 +01:00
802 move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
8021q
appletalk
atm
ax25
batman-adv move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
bluetooth Bluetooth: Fix type of len in rfcomm_sock_getsockopt{,_old}() 2024-12-05 14:02:48 +01:00
bpf bpf, test_run: Fix LIVE_FRAME frame update after a page has been recycled 2024-10-31 16:15:21 +01:00
bridge net: bridge: delete VLANs depending on the BR_VLFLAG_ADDED_BY_SWITCHDEV flag 2024-11-18 16:34:33 +08:00
caif move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
can Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-09-15 09:13:19 -07:00
ceph
core This is the 6.12.2 stable release 2024-12-06 19:43:50 +08:00
dcb
dccp net: fix data-races around sk->sk_forward_alloc 2024-11-11 15:29:33 -08:00
devlink
dns_resolver
dsa LF-14260-9 net: dsa: add NETC switch tag support i.MX94 2025-02-27 17:57:43 +08:00
ethernet
ethtool Merge remote-tracking branches 'origin/core', 'origin/arch/core', 'origin/arch/qoriq', 'origin/net/phy', 'origin/net/tsn' and 'origin/net/ptp' into net/base 2024-11-18 16:05:16 +08:00
handshake
hsr net: hsr: fix hsr_init_sk() vs network/transport headers. 2024-12-05 14:02:33 +01:00
ieee802154
ife
ipv4 ipmr: fix tables suspicious RCU usage 2024-12-05 14:02:35 +01:00
ipv6 ip6mr: fix tables suspicious RCU usage 2024-12-05 14:02:35 +01:00
iucv s390/iucv: MSG_PEEK causes memory leak in iucv_sock_destruct() 2024-12-05 14:02:31 +01:00
kcm
key
l2tp net/l2tp: fix warning in l2tp_exit_net found by syzbot 2024-12-05 14:02:31 +01:00
l3mdev
lapb
llc llc: Improve setsockopt() handling of malformed user input 2024-12-05 14:02:35 +01:00
mac80211 wifi: mac80211: ieee80211_i: Fix memory corruption bug in struct ieee80211_chanctx 2024-10-26 00:42:49 +02:00
mac802154 Including fixes from ieee802154, bluetooth and netfilter. 2024-10-03 09:44:00 -07:00
mctp mctp: Handle error of rtnl_register_module(). 2024-10-10 15:39:35 +02:00
mpls mpls: Handle error of rtnl_register_module(). 2024-10-10 15:39:35 +02:00
mptcp mptcp: pm: use _rcu variant under rcu_read_lock 2024-11-13 18:51:02 -08:00
ncsi net/ncsi: Disable the ncsi work before freeing the associated structure 2024-10-03 10:14:14 +02:00
netfilter netfilter: ipset: add missing range check in bitmap_ip_uadt 2024-12-05 14:02:51 +01:00
netlabel
netlink netlink: fix false positive warning in extack during dumps 2024-12-05 14:02:31 +01:00
netrom
nfc
nsh
openvswitch
packet net: add support for skbs with unreadable frags 2024-09-11 20:44:31 -07:00
phonet phonet: Handle error of rtnl_register_module(). 2024-10-10 15:39:36 +02:00
psample
qrtr net: qrtr: Update packets cloning when broadcasting 2024-09-24 10:48:16 +02:00
rds
rfkill net: rfkill: gpio: Add check for clk_enable() 2024-12-05 14:01:57 +01:00
rose
rxrpc rxrpc: Improve setsockopt() handling of malformed user input 2024-12-05 14:02:35 +01:00
sched This is the 6.12.2 stable release 2024-12-06 19:43:50 +08:00
sctp sctp: fix possible UAF in sctp_v6_available() 2024-11-09 09:15:04 -08:00
smc net/smc: do not leave a dangling sk pointer in __smc_create() 2024-11-07 11:31:14 -08:00
strparser
sunrpc sunrpc: fix one UAF issue caused by sunrpc kernel tcp socket 2024-12-05 14:03:09 +01:00
switchdev
tipc Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-09-15 09:13:19 -07:00
tls move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
tsn net: tsn: remove unused notifier chain functionality 2024-11-18 12:49:41 +08:00
unix af_unix: Don't return OOB skb in manage_oob(). 2024-09-09 17:14:27 -07:00
vmw_vsock hv_sock: Initializing vsk->trans to NULL to prevent a dangling pointer 2024-11-22 15:30:25 +01:00
wireless wifi: nl80211: fix bounds checker error in nl80211_parse_sched_scan 2024-12-05 14:02:49 +01:00
x25
xdp xsk: Free skb when TX metadata options are invalid 2024-12-05 14:02:00 +01:00
xfrm ipsec-2024-10-22 2024-10-24 11:11:33 +02:00
compat.c
devres.c
Kconfig net: tsn: netlink interface to configure TSN capabilities on hardware ports 2024-11-18 12:49:41 +08:00
Kconfig.debug
Makefile net: tsn: netlink interface to configure TSN capabilities on hardware ports 2024-11-18 12:49:41 +08:00
socket.c net: explicitly clear the sk pointer, when pf->create fails 2024-10-07 16:21:59 -07:00
sysctl_net.c