1e2a46d54SStanislav Fomichev /* SPDX-License-Identifier: GPL-2.0 */ 2e2a46d54SStanislav Fomichev #pragma once 3e2a46d54SStanislav Fomichev 4e2a46d54SStanislav Fomichev #ifndef ETH_P_IP 5e2a46d54SStanislav Fomichev #define ETH_P_IP 0x0800 6e2a46d54SStanislav Fomichev #endif 7e2a46d54SStanislav Fomichev 8e2a46d54SStanislav Fomichev #ifndef ETH_P_IPV6 9e2a46d54SStanislav Fomichev #define ETH_P_IPV6 0x86DD 10e2a46d54SStanislav Fomichev #endif 11e2a46d54SStanislav Fomichev 12e2a46d54SStanislav Fomichev struct xdp_meta { 13e2a46d54SStanislav Fomichev __u64 rx_timestamp; 14e2a46d54SStanislav Fomichev __u64 xdp_timestamp; 15*0f26b74eSJesper Dangaard Brouer __u32 rx_hash; 16*0f26b74eSJesper Dangaard Brouer union { 17*0f26b74eSJesper Dangaard Brouer __u32 rx_hash_type; 18*0f26b74eSJesper Dangaard Brouer __s32 rx_hash_err; 19e2a46d54SStanislav Fomichev }; 20 }; 21