Add an ether_type field to struct net_device_path_ctx to reject IPv4 over IPv6 and vice-versa, this is currently not support. Otherwise, incorrect dst_entry family can be reached from datapath.
Showing the changes to include (1 of 4 files). Show all
Unified · Split
| @@ -941,6 +941,7 @@ struct net_device_path_stack { · 940 unmodified lines | ||
| 941 | 941 | struct net_device_path_ctx { |
| 942 | 942 | const struct net_device *dev; |
| 943 | 943 | u8 daddr[ETH_ALEN]; |
| 944 | + __be16 ether_type; | |
| 944 | 945 | |
| 945 | 946 | int num_vlans; |
| 946 | 947 | struct { |