]> git.proxmox.com Git - ovs.git/blob - lib/tc.h
tc: Introduce tc module
[ovs.git] / lib / tc.h
1 /*
2 * Copyright (c) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 Nicira, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 #ifndef TC_H
18 #define TC_H 1
19
20 #include <linux/pkt_cls.h>
21 #include <linux/pkt_sched.h>
22 #include <linux/rtnetlink.h>
23 #include "openvswitch/ofpbuf.h"
24
25 unsigned int tc_make_handle(unsigned int major, unsigned int minor);
26 unsigned int tc_get_major(unsigned int handle);
27 unsigned int tc_get_minor(unsigned int handle);
28 struct tcmsg *tc_make_request(int ifindex, int type,
29 unsigned int flags, struct ofpbuf *);
30 int tc_transact(struct ofpbuf *request, struct ofpbuf **replyp);
31 int tc_add_del_ingress_qdisc(int ifindex, bool add);
32
33 #endif /* tc.h */