aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/skbuff.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2015-03-20 18:51:09 -0400
committerDavid S. Miller <davem@davemloft.net>2015-03-20 18:51:09 -0400
commit0fa74a4be48e0f810d3dc6ddbc9d6ac7e86cbee8 (patch)
treeccfee93ede4e36d6d355e00e485d3d1c0fec0bdd /net/core/skbuff.c
parent6626af692692b52c8f9e20ad8201a3255e5ab25b (diff)
parent4de930efc23b92ddf88ce91c405ee645fe6e27ea (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: drivers/net/ethernet/emulex/benet/be_main.c net/core/sysctl_net_core.c net/ipv4/inet_diag.c The be_main.c conflict resolution was really tricky. The conflict hunks generated by GIT were very unhelpful, to say the least. It split functions in half and moved them around, when the real actual conflict only existed solely inside of one function, that being be_map_pci_bars(). So instead, to resolve this, I checked out be_main.c from the top of net-next, then I applied the be_main.c changes from 'net' since the last time I merged. And this worked beautifully. The inet_diag.c and sysctl_net_core.c conflicts were simple overlapping changes, and were easily to resolve. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/skbuff.c')
-rw-r--r--net/core/skbuff.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 47c32413d5b9..cdb939b731aa 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -3689,9 +3689,13 @@ void __skb_tstamp_tx(struct sk_buff *orig_skb,
3689 struct sock *sk, int tstype) 3689 struct sock *sk, int tstype)
3690{ 3690{
3691 struct sk_buff *skb; 3691 struct sk_buff *skb;
3692 bool tsonly = sk->sk_tsflags & SOF_TIMESTAMPING_OPT_TSONLY; 3692 bool tsonly;
3693 3693
3694 if (!sk || !skb_may_tx_timestamp(sk, tsonly)) 3694 if (!sk)
3695 return;
3696
3697 tsonly = sk->sk_tsflags & SOF_TIMESTAMPING_OPT_TSONLY;
3698 if (!skb_may_tx_timestamp(sk, tsonly))
3695 return; 3699 return;
3696 3700
3697 if (tsonly) 3701 if (tsonly)
@@ -4129,7 +4133,7 @@ void skb_scrub_packet(struct sk_buff *skb, bool xnet)
4129 skb->ignore_df = 0; 4133 skb->ignore_df = 0;
4130 skb_dst_drop(skb); 4134 skb_dst_drop(skb);
4131 skb->mark = 0; 4135 skb->mark = 0;
4132 skb->sender_cpu = 0; 4136 skb_sender_cpu_clear(skb);
4133 skb_init_secmark(skb); 4137 skb_init_secmark(skb);
4134 secpath_reset(skb); 4138 secpath_reset(skb);
4135 nf_reset(skb); 4139 nf_reset(skb);