[NET]: Remove unused security member in sk_buff
authorThomas Graf <tgraf@suug.ch>
Tue, 5 Jul 2005 21:12:44 +0000 (14:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2005 21:12:44 +0000 (14:12 -0700)
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
include/linux/tc_ematch/tc_em_meta.h
net/core/skbuff.c
net/ipv4/ip_output.c
net/ipv6/ip6_output.c
net/sched/em_meta.c

index fbcb18651970c982501953847676bdee58513924..1e6290f4f81ec65b7a7fb3733c85ee6eacbc19f5 100644 (file)
@@ -183,7 +183,6 @@ struct skb_shared_info {
  *     @priority: Packet queueing priority
  *     @users: User count - see {datagram,tcp}.c
  *     @protocol: Packet protocol from driver
- *     @security: Security level of packet
  *     @truesize: Buffer size 
  *     @head: Head of buffer
  *     @data: Data head pointer
@@ -255,8 +254,7 @@ struct sk_buff {
                                pkt_type,
                                ip_summed;
        __u32                   priority;
-       unsigned short          protocol,
-                               security;
+       unsigned short          protocol;
 
        void                    (*destructor)(struct sk_buff *skb);
 #ifdef CONFIG_NETFILTER
index a6b2cc530af5e1be70ed02d2cf05240c2894c297..bcb762d931238009cf54b15a84b6630d11235b96 100644 (file)
@@ -45,7 +45,7 @@ enum
        TCF_META_ID_REALDEV,
        TCF_META_ID_PRIORITY,
        TCF_META_ID_PROTOCOL,
-       TCF_META_ID_SECURITY,
+       TCF_META_ID_SECURITY, /* obsolete */
        TCF_META_ID_PKTTYPE,
        TCF_META_ID_PKTLEN,
        TCF_META_ID_DATALEN,
index bb73b2190ec75df9d106125f532681f22e68c58a..733deee24b9f6004452881f09d4477383c171c69 100644 (file)
@@ -357,7 +357,6 @@ struct sk_buff *skb_clone(struct sk_buff *skb, int gfp_mask)
        C(ip_summed);
        C(priority);
        C(protocol);
-       C(security);
        n->destructor = NULL;
 #ifdef CONFIG_NETFILTER
        C(nfmark);
@@ -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->stamp      = old->stamp;
        new->destructor = NULL;
-       new->security   = old->security;
 #ifdef CONFIG_NETFILTER
        new->nfmark     = old->nfmark;
        new->nfcache    = old->nfcache;
index 6ce5c3292f9f74021c1fb3b8bce32dea75ade96f..1bfa49eda96f121f6e71c0e923cdf21e541ce8c8 100644 (file)
@@ -389,7 +389,6 @@ static void ip_copy_metadata(struct sk_buff *to, struct sk_buff *from)
        to->pkt_type = from->pkt_type;
        to->priority = from->priority;
        to->protocol = from->protocol;
-       to->security = from->security;
        dst_release(to->dst);
        to->dst = dst_clone(from->dst);
        to->dev = from->dev;
index 06e7cdaeedc56af64c86dc30bb1b1da262e5e08b..1f2c2f9e353f402a674f1cc1cc6a668fc2f83f9c 100644 (file)
@@ -465,7 +465,6 @@ static void ip6_copy_metadata(struct sk_buff *to, struct sk_buff *from)
        to->pkt_type = from->pkt_type;
        to->priority = from->priority;
        to->protocol = from->protocol;
-       to->security = from->security;
        dst_release(to->dst);
        to->dst = dst_clone(from->dst);
        to->dev = from->dev;
index 48bb23c2a35a404aa5ef6e94a9160e2b346510ad..53d98f8d3d8091b2243a2cbb6b23515f18911622 100644 (file)
@@ -205,11 +205,6 @@ META_COLLECTOR(int_protocol)
        dst->value = skb->protocol;
 }
 
-META_COLLECTOR(int_security)
-{
-       dst->value = skb->security;
-}
-
 META_COLLECTOR(int_pkttype)
 {
        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] = {
                [META_ID(REALDEV)]              = META_FUNC(int_realdev),
                [META_ID(PRIORITY)]             = META_FUNC(int_priority),
                [META_ID(PROTOCOL)]             = META_FUNC(int_protocol),
-               [META_ID(SECURITY)]             = META_FUNC(int_security),
                [META_ID(PKTTYPE)]              = META_FUNC(int_pkttype),
                [META_ID(PKTLEN)]               = META_FUNC(int_pktlen),
                [META_ID(DATALEN)]              = META_FUNC(int_datalen),