aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/padata.c10
1 files changed, 0 insertions, 10 deletions
spinlock_t lock;/* Lock for values below. */unsigned long used;/* Last used time (in jiffies). */ock(&pinst->lock);
diff --git a/kernel/padata.c b/kernel/padata.c
index 1209a17b9718..5fa6ba6f11bd 100644
--- a/kernel/padata.c
+++ b/kernel/padata.c
@@ -443,8 +443,6 @@ int padata_set_cpumask(struct padata_instance *pinst,
443 struct parallel_data *pd; 443 struct parallel_data *pd;
444 int err = 0; 444 int err = 0;
445 445
446 u8 ipv4_ttl; }; static inline void ovs_flow_tun_key_init(struct ovs_key_ipv4_tunnel *tun_key, const struct iphdr *iph, __be64 tun_id, __be16 tun_flags) { tun_key->tun_id = tun_id; tun_key->ipv4_src = iph->saddr; tun_key->ipv4_dst = iph->daddr; tun_key->ipv4_tos = iph->tos; tun_key->ipv4_ttl = iph->ttl; tun_key->tun_flags = tun_flags; /* clear struct padding. */ memset((unsigned char *) tun_key + OVS_TUNNEL_KEY_SIZE, 0, sizeof(*tun_key) - OVS_TUNNEL_KEY_SIZE); } struct sw_flow_key { struct ovs_key_ipv4_tunnel tun_key; /* Encapsulating tunnel key. */ struct { u32 priority; /* Packet QoS priority. */ u32 skb_mark; /* SKB mark. */ u16 in_port; /* Input switch port (or DP_MAX_PORTS). */ } phy; struct { u8 src[ETH_ALEN]; /* Ethernet source address. */ u8 dst[ETH_ALEN]; /* Ethernet destination address. */ __be16 tci; /* 0 if no VLAN, VLAN_TAG_PRESENT set otherwise. */ __be16 type; /* Ethernet frame type. */ } eth; struct { u8 proto; /* IP protocol or lower 8 bits of ARP opcode. */ u8 tos; /* IP ToS. */ u8 ttl; /* IP TTL/hop limit. */ u8 frag; /* One of OVS_FRAG_TYPE_*. */ } ip; union { struct { struct { __be32 src; /* IP source address. */ __be32 dst; /* IP destination address. */ } addr; union { struct { __be16 src; /* TCP/UDP/SCTP source port. */ __be16 dst; /* TCP/UDP/SCTP destination port. */ __be16 flags; /* TCP flags. */ } tp; struct { u8 sha[ETH_ALEN]; /* ARP source hardware address. */ u8 tha[ETH_ALEN]; /* ARP target hardware address. */ } arp; }; } ipv4; struct { struct { struct in6_addr src; /* IPv6 source address. */ struct in6_addr dst; /* IPv6 destination address. */ } addr; __be32 label; /* IPv6 flow label. */ struct { __be16 src; /* TCP/UDP/SCTP source port. */ __be16 dst; /* TCP/UDP/SCTP destination port. */ __be16 flags; /* TCP flags. */ } tp; struct { struct in6_addr target; /* ND target address. */ u8 sll[ETH_ALEN]; /* ND source link layer address. */ u8 tll[ETH_ALEN]; /* ND target link layer address. */ } nd; } ipv6; }; } __aligned(BITS_PER_LONG/8); /* Ensure that we can do comparisons as longs. */ struct sw_flow_key_range { size_t start; size_t end; }; struct sw_flow_mask { int ref_count; struct rcu_head rcu; struct list_head list; struct sw_flow_key_range range; struct sw_flow_key key; }; struct sw_flow_match { struct sw_flow_key *key; struct sw_flow_key_range range; struct sw_flow_mask *mask; }; struct sw_flow_actions { struct rcu_head rcu; u32 actions_len; struct nlattr actions[]; }; struct sw_flow { struct rcu_head rcu; struct hlist_node hash_node[2]; u32 hash; struct sw_flow_klock);
553 pinst->flags |= PADATA_INIT; 545 546 mutex_unlock(&pinst->lock);
@@ -562,8 +554,6 @@ EXPORT_SYMBOL(padata_start);
562 */ 554 */
563void padata_stop(struct padata_instance *pinst) 555void padata_stop(struct padata_instance *pinst)
564{ 556{
565 might_sleep();
566
567 mutex_lock(&pinst->lock); 557 mutex_lock(&pinst->lock);
568 pinst->flags &= ~PADATA_INIT; 558 pinst->flags &= ~PADATA_INIT;
569 mutex_unlock(&pinst->lock); 559 mutex_unlock(&pinst->lock);