This file contains hidden or 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 hidden or 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) | |
| { |
This file contains hidden or 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
| class G711ToPcmTranscoder | |
| { | |
| public: | |
| G711ToPcmTranscoder( | |
| int sample_rate, | |
| int channels, | |
| int output_sample_rate, | |
| AVSampleFormat sample_fmt | |
| ): | |
| sample_rate_( sample_rate ), |
This file contains hidden or 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
| class AudioTranscriber | |
| { | |
| public: | |
| AudioTranscriber( | |
| std::string name, | |
| const std::string &model_path, | |
| uint32_t input_sample_rate, | |
| uint32_t output_sample_rate, | |
| uint32_t window_size_seconds, | |
| G711ToPcmTranscoder &transcoder, |
OlderNewer