xfrm: remove description from xfrm_type struct
authorFlorian Westphal <fw@strlen.de>
Sat, 5 Jun 2021 10:54:43 +0000 (12:54 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 9 Jun 2021 07:38:52 +0000 (09:38 +0200)
Its set but never read. Reduces size of xfrm_type to 64 bytes on 64bit.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
12 files changed:
include/net/xfrm.h
net/ipv4/ah4.c
net/ipv4/esp4.c
net/ipv4/esp4_offload.c
net/ipv4/ipcomp.c
net/ipv4/xfrm4_tunnel.c
net/ipv6/ah6.c
net/ipv6/esp6.c
net/ipv6/esp6_offload.c
net/ipv6/ipcomp6.c
net/ipv6/mip6.c
net/ipv6/xfrm6_tunnel.c

index 6e11db6fa0ab8832912e1b7fdcb4e140ea693f00..1aad78c5f2d526216d23439a80c816239e72fdf8 100644 (file)
@@ -388,7 +388,6 @@ void xfrm_flush_gc(void);
 void xfrm_state_delete_tunnel(struct xfrm_state *x);
 
 struct xfrm_type {
-       char                    *description;
        struct module           *owner;
        u8                      proto;
        u8                      flags;
@@ -410,7 +409,6 @@ int xfrm_register_type(const struct xfrm_type *type, unsigned short family);
 void xfrm_unregister_type(const struct xfrm_type *type, unsigned short family);
 
 struct xfrm_type_offload {
-       char            *description;
        struct module   *owner;
        u8              proto;
        void            (*encap)(struct xfrm_state *, struct sk_buff *pskb);
index 36ed85bf2ad51cfd80bf374a54aa7e0815872997..2d2d08aa787d674b0cfd612fd4db6a1ce9244a7f 100644 (file)
@@ -554,7 +554,6 @@ static int ah4_rcv_cb(struct sk_buff *skb, int err)
 
 static const struct xfrm_type ah_type =
 {
-       .description    = "AH4",
        .owner          = THIS_MODULE,
        .proto          = IPPROTO_AH,
        .flags          = XFRM_TYPE_REPLAY_PROT,
index 35803ab7ac8048397227340c7c675c3cb7a95c5e..f5362b9d75ebe2369a8c25814d8377a6c9bdd675 100644 (file)
@@ -1198,7 +1198,6 @@ static int esp4_rcv_cb(struct sk_buff *skb, int err)
 
 static const struct xfrm_type esp_type =
 {
-       .description    = "ESP4",
        .owner          = THIS_MODULE,
        .proto          = IPPROTO_ESP,
        .flags          = XFRM_TYPE_REPLAY_PROT,
index be019a1fe3afa603f2a62ba7b23e7c0ffe0a4286..8e4e9aa12130dfdd2bcb52442fe688d03ddf4fae 100644 (file)
@@ -342,7 +342,6 @@ static const struct net_offload esp4_offload = {
 };
 
 static const struct xfrm_type_offload esp_type_offload = {
-       .description    = "ESP4 OFFLOAD",
        .owner          = THIS_MODULE,
        .proto          = IPPROTO_ESP,
        .input_tail     = esp_input_tail,
index b42683212c6590d2e81e060fb5c8e9907d4db917..2e69e81e1f5d9ce5a6adc65962a8086e7ccfab69 100644 (file)
@@ -152,7 +152,6 @@ static int ipcomp4_rcv_cb(struct sk_buff *skb, int err)
 }
 
 static const struct xfrm_type ipcomp_type = {
-       .description    = "IPCOMP4",
        .owner          = THIS_MODULE,
        .proto          = IPPROTO_COMP,
        .init_state     = ipcomp4_init_state,
index fb0648e7fb32f9b0715030b7eb0049df81f0deea..f4555a88f86bcf31bc20e2e84b4e9cf2c39bbc27 100644 (file)
@@ -42,7 +42,6 @@ static void ipip_destroy(struct xfrm_state *x)
 }
 
 static const struct xfrm_type ipip_type = {
-       .description    = "IPIP",
        .owner          = THIS_MODULE,
        .proto          = IPPROTO_IPIP,
        .init_state     = ipip_init_state,
index 20d492da725ae4878c6d7623b00af7b7cef9e281..e9705c256068dfe8c77f1b1c410cff7ecf9e3b0f 100644 (file)
@@ -755,7 +755,6 @@ static int ah6_rcv_cb(struct sk_buff *skb, int err)
 }
 
 static const struct xfrm_type ah6_type = {
-       .description    = "AH6",
        .owner          = THIS_MODULE,
        .proto          = IPPROTO_AH,
        .flags          = XFRM_TYPE_REPLAY_PROT,
index 393ae2b78e7d4b79c5bb04c14ae3054906bcba57..be2c0ac76eaa80c92019f0362f367e3406fd48bd 100644 (file)
@@ -1243,7 +1243,6 @@ static int esp6_rcv_cb(struct sk_buff *skb, int err)
 }
 
 static const struct xfrm_type esp6_type = {
-       .description    = "ESP6",
        .owner          = THIS_MODULE,
        .proto          = IPPROTO_ESP,
        .flags          = XFRM_TYPE_REPLAY_PROT,
index 40ed4fcf1cf4c82bd2aa2335ec5c1a3a2adabe16..a349d479807764f0ec32789b1676def4259d08a0 100644 (file)
@@ -377,7 +377,6 @@ static const struct net_offload esp6_offload = {
 };
 
 static const struct xfrm_type_offload esp6_type_offload = {
-       .description    = "ESP6 OFFLOAD",
        .owner          = THIS_MODULE,
        .proto          = IPPROTO_ESP,
        .input_tail     = esp6_input_tail,
index daef890460b7091152127b42a2525393523324e8..491aba66b7ae5f8a2fa6ab48835e03dc22ad5cb3 100644 (file)
@@ -172,7 +172,6 @@ static int ipcomp6_rcv_cb(struct sk_buff *skb, int err)
 }
 
 static const struct xfrm_type ipcomp6_type = {
-       .description    = "IPCOMP6",
        .owner          = THIS_MODULE,
        .proto          = IPPROTO_COMP,
        .init_state     = ipcomp6_init_state,
index 878fcec149494976a515a901c4d7acad0386f59c..bc560e1664aaad1f6f7318a5a5d67f311116f1b0 100644 (file)
@@ -324,7 +324,6 @@ static void mip6_destopt_destroy(struct xfrm_state *x)
 }
 
 static const struct xfrm_type mip6_destopt_type = {
-       .description    = "MIP6DESTOPT",
        .owner          = THIS_MODULE,
        .proto          = IPPROTO_DSTOPTS,
        .flags          = XFRM_TYPE_NON_FRAGMENT | XFRM_TYPE_LOCAL_COADDR,
@@ -456,7 +455,6 @@ static void mip6_rthdr_destroy(struct xfrm_state *x)
 }
 
 static const struct xfrm_type mip6_rthdr_type = {
-       .description    = "MIP6RT",
        .owner          = THIS_MODULE,
        .proto          = IPPROTO_ROUTING,
        .flags          = XFRM_TYPE_NON_FRAGMENT | XFRM_TYPE_REMOTE_COADDR,
index f696d46e6910068d1c15b487f7e68feecad5452a..2b31112c0856bd8136ea6283a601e4c392976726 100644 (file)
@@ -291,7 +291,6 @@ static void xfrm6_tunnel_destroy(struct xfrm_state *x)
 }
 
 static const struct xfrm_type xfrm6_tunnel_type = {
-       .description    = "IP6IP6",
        .owner          = THIS_MODULE,
        .proto          = IPPROTO_IPV6,
        .init_state     = xfrm6_tunnel_init_state,