diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2016-02-19 18:29:30 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-19 23:43:10 -0500 |
commit | 6b83d28a55a891a9d70fc61ccb1c138e47dcbe74 (patch) | |
tree | 53d156b1995604c21cd21579b98c4d82333d588f /net/openvswitch/vport.h | |
parent | 321b4d4bd12f90e7497c9ab057aafcc2649aa902 (diff) |
net: use skb_postpush_rcsum instead of own implementations
Replace individual implementations with the recently introduced
skb_postpush_rcsum() helper.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Tom Herbert <tom@herbertland.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch/vport.h')
-rw-r--r-- | net/openvswitch/vport.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/net/openvswitch/vport.h b/net/openvswitch/vport.h index c10899cb9040..f01f28a567ad 100644 --- a/net/openvswitch/vport.h +++ b/net/openvswitch/vport.h | |||
@@ -185,13 +185,6 @@ static inline struct vport *vport_from_priv(void *priv) | |||
185 | int ovs_vport_receive(struct vport *, struct sk_buff *, | 185 | int ovs_vport_receive(struct vport *, struct sk_buff *, |
186 | const struct ip_tunnel_info *); | 186 | const struct ip_tunnel_info *); |
187 | 187 | ||
188 | static inline void ovs_skb_postpush_rcsum(struct sk_buff *skb, | ||
189 | const void *start, unsigned int len) | ||
190 | { | ||
191 | if (skb->ip_summed == CHECKSUM_COMPLETE) | ||
192 | skb->csum = csum_add(skb->csum, csum_partial(start, len, 0)); | ||
193 | } | ||
194 | |||
195 | static inline const char *ovs_vport_name(struct vport *vport) | 188 | static inline const char *ovs_vport_name(struct vport *vport) |
196 | { | 189 | { |
197 | return vport->dev->name; | 190 | return vport->dev->name; |