Search Linux Wireless

Re: [PATCH 1/7] net/fq_impl: bulk-free packets from a flow on overmemory

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

 



On Wed, 2020-12-16 at 21:43 +0100, Felix Fietkau wrote:
> 
> +static int fq_flow_drop(struct fq *fq, struct fq_flow *flow,
> +			fq_skb_free_t free_func)
> +{
> +	unsigned int packets = 0, bytes = 0, truesize = 0;
> +	struct fq_tin *tin = flow->tin;
> +	struct sk_buff *skb;
> +	int pending;
> +
> +	lockdep_assert_held(&fq->lock);
> +
> +	pending = min_t(int, 32, skb_queue_len(&flow->queue) / 2);
> 

Why 32?

johannes




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux