~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/net/openvswitch/flow_netlink.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*
  3  * Copyright (c) 2007-2013 Nicira, Inc.
  4  */
  5 
  6 
  7 #ifndef FLOW_NETLINK_H
  8 #define FLOW_NETLINK_H 1
  9 
 10 #include <linux/kernel.h>
 11 #include <linux/netlink.h>
 12 #include <linux/openvswitch.h>
 13 #include <linux/spinlock.h>
 14 #include <linux/types.h>
 15 #include <linux/rcupdate.h>
 16 #include <linux/if_ether.h>
 17 #include <linux/in6.h>
 18 #include <linux/jiffies.h>
 19 #include <linux/time.h>
 20 
 21 #include <net/inet_ecn.h>
 22 #include <net/ip_tunnels.h>
 23 
 24 #include "flow.h"
 25 
 26 size_t ovs_tun_key_attr_size(void);
 27 size_t ovs_key_attr_size(void);
 28 
 29 void ovs_match_init(struct sw_flow_match *match,
 30                     struct sw_flow_key *key, bool reset_key,
 31                     struct sw_flow_mask *mask);
 32 
 33 int ovs_nla_put_key(const struct sw_flow_key *, const struct sw_flow_key *,
 34                     int attr, bool is_mask, struct sk_buff *);
 35 int parse_flow_nlattrs(const struct nlattr *attr, const struct nlattr *a[],
 36                        u64 *attrsp, bool log);
 37 int ovs_nla_get_flow_metadata(struct net *net,
 38                               const struct nlattr *a[OVS_KEY_ATTR_MAX + 1],
 39                               u64 attrs, struct sw_flow_key *key, bool log);
 40 
 41 int ovs_nla_put_identifier(const struct sw_flow *flow, struct sk_buff *skb);
 42 int ovs_nla_put_masked_key(const struct sw_flow *flow, struct sk_buff *skb);
 43 int ovs_nla_put_mask(const struct sw_flow *flow, struct sk_buff *skb);
 44 
 45 int ovs_nla_get_match(struct net *, struct sw_flow_match *,
 46                       const struct nlattr *key, const struct nlattr *mask,
 47                       bool log);
 48 
 49 int ovs_nla_put_tunnel_info(struct sk_buff *skb,
 50                             struct ip_tunnel_info *tun_info);
 51 
 52 bool ovs_nla_get_ufid(struct sw_flow_id *, const struct nlattr *, bool log);
 53 int ovs_nla_get_identifier(struct sw_flow_id *sfid, const struct nlattr *ufid,
 54                            const struct sw_flow_key *key, bool log);
 55 u32 ovs_nla_get_ufid_flags(const struct nlattr *attr);
 56 
 57 int ovs_nla_copy_actions(struct net *net, const struct nlattr *attr,
 58                          const struct sw_flow_key *key,
 59                          struct sw_flow_actions **sfa, bool log);
 60 int ovs_nla_add_action(struct sw_flow_actions **sfa, int attrtype,
 61                        void *data, int len, bool log);
 62 int ovs_nla_put_actions(const struct nlattr *attr,
 63                         int len, struct sk_buff *skb);
 64 
 65 void ovs_nla_free_flow_actions(struct sw_flow_actions *);
 66 void ovs_nla_free_flow_actions_rcu(struct sw_flow_actions *);
 67 
 68 int nsh_key_from_nlattr(const struct nlattr *attr, struct ovs_key_nsh *nsh,
 69                         struct ovs_key_nsh *nsh_mask);
 70 int nsh_hdr_from_nlattr(const struct nlattr *attr, struct nshhdr *nh,
 71                         size_t size);
 72 
 73 #endif /* flow_netlink.h */
 74 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php