Steven Luong
e4238aa34f
ethernet: check destination mac for L3 in ethernet-input node
...
When the NIC does not support mac filter, we rely on ethernet-input
node to do the destination mac check, ie, when the interface is in L3,
the mac address for the packet must be the mac address of the
interface where the packet arrives. This works fine in ethernet-input
node when all packets in the frame might have different interfaces, ie,
ETH_INPUT_FRAME_F_SINGLE_SW_IF_ID is not set in the frame. However,
when all packets are having the same interface,
ETH_INPUT_FRAME_F_SINGLE_SW_IF_ID is set, ethernet-input node goes
through the optimized routine eth_input_single_int -> eth_input_process_frame.
That is where dmac check has a bug when all packets in the frame are
either, ip4, ip6, or mpls without vlan tags. Because without vlan tags,
the code handles all packets in fast path and ignores dmac check.
With vlan tags, the code goes to slow path where dmac check is handled
properly.
The fix is to check if we have a bad dmac in the fast path and force the
code to go to slow path which will handle dmac check properly.
Also do a wholesale correction on all the testcases which do not use
the proper dmac when sending L3 packets.
Type: fix
Change-Id: I73153a805cecdc24c4eefcc781676de04737ae2c
Signed-off-by: Steven Luong <sluong@cisco.com>
2024-05-08 09:42:23 +00:00
..
2024-04-09 16:17:29 +00:00
2023-08-08 10:16:26 +00:00
2024-05-06 11:52:35 +00:00
2022-11-09 21:22:33 -05:00
2022-05-10 18:52:08 +00:00
2024-01-18 20:14:54 +00:00
2022-05-10 18:52:08 +00:00
2023-11-03 05:06:43 +00:00
2023-12-15 09:53:29 +00:00
2023-11-03 05:06:43 +00:00
2022-05-10 18:52:08 +00:00
2023-11-03 05:06:43 +00:00
2022-05-10 18:52:08 +00:00
2024-04-03 14:10:47 -04:00
2023-11-03 05:06:43 +00:00
2024-04-03 14:10:47 -04:00
2024-03-26 15:15:02 +00:00
2024-04-03 14:10:47 -04:00
2024-04-03 14:10:47 -04:00
2023-11-03 05:06:43 +00:00
2024-04-02 02:11:02 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2024-05-08 09:42:23 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2022-05-10 18:52:08 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2024-03-04 09:29:12 +00:00
2023-11-03 05:06:43 +00:00
2022-05-10 18:52:08 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-08 17:05:43 +00:00
2023-10-16 13:13:00 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2024-05-08 09:42:23 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2024-05-08 09:42:23 +00:00
2024-05-08 09:42:23 +00:00
2023-11-03 05:06:43 +00:00
2024-04-03 14:10:47 -04:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2024-03-04 07:51:16 +00:00
2024-05-08 09:42:23 +00:00
2023-11-03 05:06:43 +00:00
2024-05-08 09:42:23 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-05-16 13:29:04 +00:00
2023-11-03 05:06:43 +00:00
2024-05-08 09:42:23 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2022-06-28 14:53:07 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2024-02-19 15:35:54 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2024-05-08 09:42:23 +00:00
2023-11-03 05:06:43 +00:00
2023-07-13 08:10:26 +00:00
2024-05-08 09:42:23 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2024-05-08 09:42:23 +00:00
2024-05-08 09:42:23 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2024-05-08 09:42:23 +00:00
2023-11-03 05:06:43 +00:00
2024-03-04 11:30:24 +00:00
2024-05-08 09:42:23 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2024-05-08 09:42:23 +00:00
2023-11-03 05:06:43 +00:00
2023-11-28 20:39:37 +00:00
2023-11-03 05:06:43 +00:00
2024-05-08 09:42:23 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2024-03-26 15:13:34 +00:00
2023-11-03 05:06:43 +00:00
2024-05-08 09:42:23 +00:00
2023-05-20 02:34:14 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2024-05-08 09:42:23 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2024-05-08 09:42:23 +00:00
2023-12-07 10:04:07 +00:00
2023-11-03 05:06:43 +00:00
2024-01-10 00:28:06 +00:00
2023-11-03 05:06:43 +00:00
2024-02-14 22:08:20 +00:00
2024-02-14 22:08:20 +00:00
2024-02-14 22:08:20 +00:00
2024-02-14 22:08:20 +00:00
2024-02-14 22:08:20 +00:00
2024-02-14 22:08:20 +00:00
2024-02-14 22:08:20 +00:00
2024-02-14 22:08:20 +00:00
2024-02-14 22:08:20 +00:00
2024-02-14 22:08:20 +00:00
2024-02-14 22:08:20 +00:00
2024-02-14 22:08:20 +00:00
2024-02-14 22:08:20 +00:00
2024-02-14 22:08:20 +00:00
2024-02-14 22:08:20 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2024-05-08 09:42:23 +00:00
2024-03-26 15:14:05 +00:00
2024-03-26 15:15:02 +00:00
2023-12-21 00:53:44 +00:00
2024-04-03 14:10:47 -04:00
2022-05-10 18:52:08 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2022-05-10 18:52:08 +00:00
2022-05-10 18:52:08 +00:00
2022-05-10 18:52:08 +00:00
2023-11-03 05:06:43 +00:00
2022-05-10 18:52:08 +00:00
2023-11-03 05:06:43 +00:00
2023-11-03 05:06:43 +00:00
2024-04-23 08:52:48 +00:00
2024-04-03 14:10:47 -04:00
2024-02-14 22:08:20 +00:00
2023-11-03 05:06:43 +00:00
2024-04-02 02:25:22 +00:00
2022-10-11 23:21:03 +00:00
2022-05-10 18:52:08 +00:00
2022-05-10 18:52:08 +00:00
2022-05-10 18:52:08 +00:00
2022-05-10 18:52:08 +00:00
2023-11-03 05:06:43 +00:00
2022-05-10 18:52:08 +00:00
2022-05-10 18:52:08 +00:00
2024-04-02 02:25:22 +00:00
2023-11-28 03:34:49 +00:00
2023-02-02 00:22:06 +00:00
2022-05-10 18:52:08 +00:00
2023-12-21 00:53:44 +00:00
2022-05-10 18:52:08 +00:00
2023-12-21 00:53:44 +00:00
2023-12-20 17:30:19 +00:00
2023-02-10 16:17:27 +00:00
2022-05-10 18:52:08 +00:00
2022-05-10 18:52:08 +00:00
2022-05-10 18:52:08 +00:00
2022-05-10 18:52:08 +00:00
2022-05-10 18:52:08 +00:00
2023-08-16 19:53:12 +00:00
2022-05-10 18:52:08 +00:00
2022-05-10 18:52:08 +00:00
2022-05-10 18:52:08 +00:00