--- zzzz-none-000/linux-5.15.111/include/uapi/linux/if_packet.h 2023-05-11 14:00:40.000000000 +0000 +++ puma7-arm-6670-761/linux-5.15.111/include/uapi/linux/if_packet.h 2024-02-07 09:28:08.000000000 +0000 @@ -1,4 +1,9 @@ /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +/* + * Includes Intel Corporation's changes/modifications dated: 2017. + * Changed/modified portions - Copyright (c) 2017, Intel Corporation. + */ + #ifndef __LINUX_IF_PACKET_H #define __LINUX_IF_PACKET_H @@ -60,6 +65,14 @@ #define PACKET_FANOUT_DATA 22 #define PACKET_IGNORE_OUTGOING 23 +/* +* Intel Extension: +* Data structure for passing auxilliary data for layer 2 packets +*/ +#ifdef CONFIG_TI_AUXDATA_SOCKOPT +#define TI_AUXDATA 24 +#endif + #define PACKET_FANOUT_HASH 0 #define PACKET_FANOUT_LB 1 #define PACKET_FANOUT_CPU 2 @@ -104,6 +117,20 @@ __u16 tp_vlan_tpid; }; +/* +* Intel Extension: +* Data structure for passing auxilliary data for layer 2 packets +*/ +#ifdef CONFIG_TI_AUXDATA_SOCKOPT +struct ti_auxdata +{ +#ifdef CONFIG_TI_META_DATA + int ti_meta_info; + int ti_meta_info2; +#endif +}; +#endif + /* Rx ring - header status */ #define TP_STATUS_KERNEL 0 #define TP_STATUS_USER (1 << 0)