提交 e176fe89 编写于 作者: T Thomas Graf 提交者: David S. Miller

[NET]: Remove unused security member in sk_buff

Signed-off-by: NThomas Graf <tgraf@suug.ch>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 3154e540
...@@ -183,7 +183,6 @@ struct skb_shared_info { ...@@ -183,7 +183,6 @@ struct skb_shared_info {
* @priority: Packet queueing priority * @priority: Packet queueing priority
* @users: User count - see {datagram,tcp}.c * @users: User count - see {datagram,tcp}.c
* @protocol: Packet protocol from driver * @protocol: Packet protocol from driver
* @security: Security level of packet
* @truesize: Buffer size * @truesize: Buffer size
* @head: Head of buffer * @head: Head of buffer
* @data: Data head pointer * @data: Data head pointer
...@@ -255,8 +254,7 @@ struct sk_buff { ...@@ -255,8 +254,7 @@ struct sk_buff {
pkt_type, pkt_type,
ip_summed; ip_summed;
__u32 priority; __u32 priority;
unsigned short protocol, unsigned short protocol;
security;
void (*destructor)(struct sk_buff *skb); void (*destructor)(struct sk_buff *skb);
#ifdef CONFIG_NETFILTER #ifdef CONFIG_NETFILTER
......
...@@ -45,7 +45,7 @@ enum ...@@ -45,7 +45,7 @@ enum
TCF_META_ID_REALDEV, TCF_META_ID_REALDEV,
TCF_META_ID_PRIORITY, TCF_META_ID_PRIORITY,
TCF_META_ID_PROTOCOL, TCF_META_ID_PROTOCOL,
TCF_META_ID_SECURITY, TCF_META_ID_SECURITY, /* obsolete */
TCF_META_ID_PKTTYPE, TCF_META_ID_PKTTYPE,
TCF_META_ID_PKTLEN, TCF_META_ID_PKTLEN,
TCF_META_ID_DATALEN, TCF_META_ID_DATALEN,
......
...@@ -357,7 +357,6 @@ struct sk_buff *skb_clone(struct sk_buff *skb, int gfp_mask) ...@@ -357,7 +357,6 @@ struct sk_buff *skb_clone(struct sk_buff *skb, int gfp_mask)
C(ip_summed); C(ip_summed);
C(priority); C(priority);
C(protocol); C(protocol);
C(security);
n->destructor = NULL; n->destructor = NULL;
#ifdef CONFIG_NETFILTER #ifdef CONFIG_NETFILTER
C(nfmark); C(nfmark);
...@@ -422,7 +421,6 @@ static void copy_skb_header(struct sk_buff *new, const struct sk_buff *old) ...@@ -422,7 +421,6 @@ static void copy_skb_header(struct sk_buff *new, const struct sk_buff *old)
new->pkt_type = old->pkt_type; new->pkt_type = old->pkt_type;
new->stamp = old->stamp; new->stamp = old->stamp;
new->destructor = NULL; new->destructor = NULL;
new->security = old->security;
#ifdef CONFIG_NETFILTER #ifdef CONFIG_NETFILTER
new->nfmark = old->nfmark; new->nfmark = old->nfmark;
new->nfcache = old->nfcache; new->nfcache = old->nfcache;
......
...@@ -389,7 +389,6 @@ static void ip_copy_metadata(struct sk_buff *to, struct sk_buff *from) ...@@ -389,7 +389,6 @@ static void ip_copy_metadata(struct sk_buff *to, struct sk_buff *from)
to->pkt_type = from->pkt_type; to->pkt_type = from->pkt_type;
to->priority = from->priority; to->priority = from->priority;
to->protocol = from->protocol; to->protocol = from->protocol;
to->security = from->security;
dst_release(to->dst); dst_release(to->dst);
to->dst = dst_clone(from->dst); to->dst = dst_clone(from->dst);
to->dev = from->dev; to->dev = from->dev;
......
...@@ -465,7 +465,6 @@ static void ip6_copy_metadata(struct sk_buff *to, struct sk_buff *from) ...@@ -465,7 +465,6 @@ static void ip6_copy_metadata(struct sk_buff *to, struct sk_buff *from)
to->pkt_type = from->pkt_type; to->pkt_type = from->pkt_type;
to->priority = from->priority; to->priority = from->priority;
to->protocol = from->protocol; to->protocol = from->protocol;
to->security = from->security;
dst_release(to->dst); dst_release(to->dst);
to->dst = dst_clone(from->dst); to->dst = dst_clone(from->dst);
to->dev = from->dev; to->dev = from->dev;
......
...@@ -205,11 +205,6 @@ META_COLLECTOR(int_protocol) ...@@ -205,11 +205,6 @@ META_COLLECTOR(int_protocol)
dst->value = skb->protocol; dst->value = skb->protocol;
} }
META_COLLECTOR(int_security)
{
dst->value = skb->security;
}
META_COLLECTOR(int_pkttype) META_COLLECTOR(int_pkttype)
{ {
dst->value = skb->pkt_type; dst->value = skb->pkt_type;
...@@ -524,7 +519,6 @@ static struct meta_ops __meta_ops[TCF_META_TYPE_MAX+1][TCF_META_ID_MAX+1] = { ...@@ -524,7 +519,6 @@ static struct meta_ops __meta_ops[TCF_META_TYPE_MAX+1][TCF_META_ID_MAX+1] = {
[META_ID(REALDEV)] = META_FUNC(int_realdev), [META_ID(REALDEV)] = META_FUNC(int_realdev),
[META_ID(PRIORITY)] = META_FUNC(int_priority), [META_ID(PRIORITY)] = META_FUNC(int_priority),
[META_ID(PROTOCOL)] = META_FUNC(int_protocol), [META_ID(PROTOCOL)] = META_FUNC(int_protocol),
[META_ID(SECURITY)] = META_FUNC(int_security),
[META_ID(PKTTYPE)] = META_FUNC(int_pkttype), [META_ID(PKTTYPE)] = META_FUNC(int_pkttype),
[META_ID(PKTLEN)] = META_FUNC(int_pktlen), [META_ID(PKTLEN)] = META_FUNC(int_pktlen),
[META_ID(DATALEN)] = META_FUNC(int_datalen), [META_ID(DATALEN)] = META_FUNC(int_datalen),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册