Skip to content

Commit

Permalink
datapath: compat: fix SKB_INIT_FILL_METADATA_DST definition
Browse files Browse the repository at this point in the history
In case of OVS using compat fill metadata dst implementation we need to
setup temperory dst.

Signed-off-by: Pravin B Shelar <[email protected]>
Acked-by: Jesse Gross <[email protected]>
  • Loading branch information
pshelar committed Aug 3, 2016
1 parent 990da59 commit 5536c94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datapath/linux/compat/gso.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct ovs_gso_cb {
#ifndef HAVE_INNER_PROTOCOL
__be16 inner_protocol;
#endif
#ifndef HAVE_NDO_FILL_METADATA_DST
#ifndef USE_UPSTREAM_TUNNEL
/* Keep original tunnel info during userspace action execution. */
struct metadata_dst *fill_md_dst;
#endif
Expand Down Expand Up @@ -166,7 +166,7 @@ static inline void ovs_dst_release(struct dst_entry *dst)
#define ovs_dst_release dst_release
#endif

#ifndef HAVE_NDO_FILL_METADATA_DST
#ifndef USE_UPSTREAM_TUNNEL
#define SKB_INIT_FILL_METADATA_DST(skb) OVS_GSO_CB(skb)->fill_md_dst = NULL;

#define SKB_RESTORE_FILL_METADATA_DST(skb) do { \
Expand Down

0 comments on commit 5536c94

Please sign in to comment.