X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=drivers%2Fnet%2Ftap%2Ftap_tcmsgs.h;fp=drivers%2Fnet%2Fnull%2Frte_eth_null.h;h=789595771d6363309ffcc04c6203d4527080ca1f;hb=7595afa4d30097c1177b69257118d8ad89a539be;hp=abada8c25387d65df6baecd35c46b715f7ebedc7;hpb=ce3d555e43e3795b5d9507fcfc76b7a0a92fd0d6;p=deb_dpdk.git diff --git a/drivers/net/null/rte_eth_null.h b/drivers/net/tap/tap_tcmsgs.h similarity index 60% rename from drivers/net/null/rte_eth_null.h rename to drivers/net/tap/tap_tcmsgs.h index abada8c2..78959577 100644 --- a/drivers/net/null/rte_eth_null.h +++ b/drivers/net/tap/tap_tcmsgs.h @@ -1,8 +1,8 @@ /*- * BSD LICENSE * - * Copyright(c) 2015 Intel Corporation. All rights reserved. - * All rights reserved. + * Copyright 2017 6WIND S.A. + * Copyright 2017 Mellanox. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * * Neither the name of Intel Corporation nor the names of its + * * Neither the name of 6WIND S.A. nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * @@ -31,10 +31,31 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef RTE_ETH_NULL_H_ -#define RTE_ETH_NULL_H_ +#ifndef _TAP_TCMSGS_H_ +#define _TAP_TCMSGS_H_ -int eth_dev_null_create(const char *name, const unsigned numa_node, - unsigned packet_size, unsigned packet_copy); +#include +#include +#include +#include +#include +#include +#include +#include -#endif /* RTE_ETH_NULL_H_ */ +#include +#include + +#define MULTIQ_MAJOR_HANDLE (1 << 16) + +void tc_init_msg(struct nlmsg *msg, uint16_t ifindex, uint16_t type, + uint16_t flags); +int qdisc_list(int nlsk_fd, uint16_t ifindex); +int qdisc_flush(int nlsk_fd, uint16_t ifindex); +int qdisc_create_ingress(int nlsk_fd, uint16_t ifindex); +int qdisc_create_multiq(int nlsk_fd, uint16_t ifindex); +int qdisc_add_ingress(int nlsk_fd, uint16_t ifindex); +int qdisc_add_multiq(int nlsk_fd, uint16_t ifindex); +int filter_list_ingress(int nlsk_fd, uint16_t ifindex); + +#endif /* _TAP_TCMSGS_H_ */