Re: [PATCH RFC net-next 2/7] net: add dst_pending_confirm flag to skbuff

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2016-12-18 at 22:56 +0200, Julian Anastasov wrote:

>  
> +static inline void sock_confirm_neigh(struct sk_buff *skb, struct neighbour *n)
> +{
> +	if (unlikely(skb->dst_pending_confirm)) {
> +		struct sock *sk = skb->sk;
> +		unsigned long now = jiffies;
> +
> +		/* avoid dirtying neighbour */
> +		if (n->confirmed != now)
> +			n->confirmed = now;
> +		if (sk && sk->sk_dst_pending_confirm)
> +			sk->sk_dst_pending_confirm = 0;
> +	}
> +}
> +

I am still digesting this awesome patch series ;)

Not sure why you used an unlikely() here. TCP for example would hit this
path quite often.

So considering sk_dst_pending_confirm might be dirtied quite often,

I am not sure why you placed it in the cache line that contains
sk_rx_dst (in 1st patch)

Thanks.



--
To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Networking Development]     [Linux OMAP]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux