File: tc_pedit.h

package info (click to toggle)
openvswitch 3.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 97,848 kB
  • sloc: sh: 1,643,930; ansic: 313,386; python: 27,939; xml: 21,526; makefile: 546; javascript: 191
file content (29 lines) | stat: -rw-r--r-- 716 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef FIX_LINUX_TC_PEDIT_H
#define FIX_LINUX_TC_PEDIT_H

#ifndef __CHECKER__
#error "Use this header only with sparse.  It is not a correct implementation."
#endif

#include_next <linux/tc_act/tc_pedit.h>

/* Fixes endianness of 'mask' and 'val' members. */
#define tc_pedit_key rpl_tc_pedit_key
struct rpl_tc_pedit_key {
    ovs_be32        mask;  /* AND */
    ovs_be32        val;   /* XOR */
    __u32           off;   /* offset */
    __u32           at;
    __u32           offmask;
    __u32           shift;
};

#define tc_pedit_sel rpl_tc_pedit_sel
struct rpl_tc_pedit_sel {
    tc_gen;
    unsigned char           nkeys;
    unsigned char           flags;
    struct tc_pedit_key     keys[0];
};

#endif