f-stack/dpdk/drivers/net/tap/tap_tcmsgs.h

38 lines
1.1 KiB
C
Raw Normal View History

2019-06-25 11:12:58 +00:00
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2017 6WIND S.A.
* Copyright 2017 Mellanox Technologies, Ltd
2017-04-21 10:43:26 +00:00
*/
#ifndef _TAP_TCMSGS_H_
#define _TAP_TCMSGS_H_
2017-04-21 10:43:26 +00:00
2019-06-25 11:12:58 +00:00
#include <tap_autoconf.h>
#include <linux/if_ether.h>
#include <linux/rtnetlink.h>
#include <linux/pkt_sched.h>
#include <linux/pkt_cls.h>
#include <linux/tc_act/tc_mirred.h>
#include <linux/tc_act/tc_gact.h>
#include <linux/tc_act/tc_skbedit.h>
2019-06-25 11:12:58 +00:00
#ifdef HAVE_TC_ACT_BPF
#include <linux/tc_act/tc_bpf.h>
#endif
#include <inttypes.h>
2017-04-21 10:43:26 +00:00
#include <rte_ether.h>
#include <tap_netlink.h>
2017-04-21 10:43:26 +00:00
#define MULTIQ_MAJOR_HANDLE (1 << 16)
2017-04-21 10:43:26 +00:00
2023-09-11 06:58:14 +00:00
void tc_init_msg(struct nlmsg *msg, unsigned int ifindex, uint16_t type,
uint16_t flags);
2023-09-11 06:58:14 +00:00
int qdisc_list(int nlsk_fd, unsigned int ifindex);
int qdisc_flush(int nlsk_fd, unsigned int ifindex);
int qdisc_create_ingress(int nlsk_fd, unsigned int ifindex);
int qdisc_create_multiq(int nlsk_fd, unsigned int ifindex);
int qdisc_add_ingress(int nlsk_fd, unsigned int ifindex);
int qdisc_add_multiq(int nlsk_fd, unsigned int ifindex);
int filter_list_ingress(int nlsk_fd, unsigned int ifindex);
2017-04-21 10:43:26 +00:00
#endif /* _TAP_TCMSGS_H_ */