This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct rte_eth_conf port_conf = { | |
.rxmode = { | |
.mq_mode = ETH_MQ_RX_RSS, | |
}, | |
.rx_adv_conf = { | |
.rss_conf = { | |
.rss_hf = ETH_RSS_IP | | |
ETH_RSS_TCP | | |
ETH_RSS_UDP | | |
ETH_RSS_SCTP, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <linux/bpf.h> | |
#ifndef __section | |
# define __section(NAME) \ | |
__attribute__((section(NAME), used)) | |
#endif | |
__section("prog") | |
int xdp_drop(struct xdp_md *ctx) | |
{ |
OlderNewer