]> git.proxmox.com Git - mirror_ovs.git/blame - lib/netdev-tc-offloads.h
rhel: let *-ctl handle runtime directory
[mirror_ovs.git] / lib / netdev-tc-offloads.h
CommitLineData
18ebd48c
PB
1/*
2 * Copyright (c) 2016 Mellanox Technologies, Ltd.
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 NETDEV_TC_OFFLOADS_H
18#define NETDEV_TC_OFFLOADS_H 1
19
20#include "netdev-provider.h"
21
22int netdev_tc_flow_flush(struct netdev *);
23int netdev_tc_flow_dump_create(struct netdev *, struct netdev_flow_dump **);
24int netdev_tc_flow_dump_destroy(struct netdev_flow_dump *);
25bool netdev_tc_flow_dump_next(struct netdev_flow_dump *, struct match *,
26 struct nlattr **actions,
27 struct dpif_flow_stats *,
d63ca532 28 struct dpif_flow_attrs *,
18ebd48c
PB
29 ovs_u128 *ufid,
30 struct ofpbuf *rbuffer,
31 struct ofpbuf *wbuffer);
32int netdev_tc_flow_put(struct netdev *, struct match *,
33 struct nlattr *actions, size_t actions_len,
34 const ovs_u128 *, struct offload_info *,
35 struct dpif_flow_stats *);
36int netdev_tc_flow_get(struct netdev *, struct match *,
37 struct nlattr **actions, const ovs_u128 *,
d63ca532
GT
38 struct dpif_flow_stats *,
39 struct dpif_flow_attrs *, struct ofpbuf *);
18ebd48c
PB
40int netdev_tc_flow_del(struct netdev *, const ovs_u128 *,
41 struct dpif_flow_stats *);
42int netdev_tc_init_flow_api(struct netdev *);
43
44#endif /* netdev-tc-offloads.h */