[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y9JbLW/BF/Q6nKBy@unreal>
Date: Thu, 26 Jan 2023 12:51:25 +0200
From: Leon Romanovsky <leon@...nel.org>
To: Tony Nguyen <anthony.l.nguyen@...el.com>
Cc: davem@...emloft.net, kuba@...nel.org, pabeni@...hat.com,
edumazet@...gle.com, Tan Tee Min <tee.min.tan@...ux.intel.com>,
netdev@...r.kernel.org, sasha.neftin@...el.com,
Muhammad Husaini Zulkifli <muhammad.husaini.zulkifli@...el.com>,
Naama Meir <naamax.meir@...ux.intel.com>
Subject: Re: [PATCH net-next 2/3] igc: offload queue max SDU from tc-taprio
On Wed, Jan 25, 2023 at 01:27:01PM -0800, Tony Nguyen wrote:
> From: Tan Tee Min <tee.min.tan@...ux.intel.com>
>
> Add support for configuring the max SDU for each Tx queue.
> If not specified, keep the default.
>
> All link speeds have been tested with this implementation.
> No performance issue observed.
>
> How to test:
>
> 1) Configure the tc with max-sdu
>
> tc qdisc replace dev $IFACE parent root handle 100 taprio \
> num_tc 4 \
> map 0 1 2 3 3 3 3 3 3 3 3 3 3 3 3 3 \
> queues 1@0 1@1 1@2 1@3 \
> base-time $BASE \
> sched-entry S 0xF 1000000 \
> max-sdu 1500 1498 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \
> flags 0x2 \
> txtime-delay 0
>
> 2) Use network statistic to watch the tx queue packet to see if
> packet able to go out or drop.
>
> Signed-off-by: Tan Tee Min <tee.min.tan@...ux.intel.com>
> Signed-off-by: Muhammad Husaini Zulkifli <muhammad.husaini.zulkifli@...el.com>
> Tested-by: Naama Meir <naamax.meir@...ux.intel.com>
> Signed-off-by: Tony Nguyen <anthony.l.nguyen@...el.com>
> ---
> drivers/net/ethernet/intel/igc/igc.h | 1 +
> drivers/net/ethernet/intel/igc/igc_main.c | 44 +++++++++++++++++++++++
> 2 files changed, 45 insertions(+)
<...>
> +skb_drop:
> + dev_kfree_skb_any(skb);
> + skb = NULL;
Why do you set skb to be NULL?
> +
> return NETDEV_TX_OK;
> }
>
Thanks
Powered by blists - more mailing lists