[Intel-wired-lan] [PATCH v7 0/2] XDP support for ixgbe

John Fastabend john.fastabend at gmail.com
Sat Mar 25 23:55:37 UTC 2017


On 17-03-24 03:22 PM, William Tu wrote:
> On Thu, Mar 23, 2017 at 9:30 PM, John Fastabend
> <john.fastabend at gmail.com> wrote:
>> This version fixes a couple issues with q_vector allocation and query on XDP
>> program.
>>
>> ---
>>
>> John Fastabend (2):
>>       ixgbe: add XDP support for pass and drop actions
>>       ixgbe: add support for XDP_TX action
>>
>>
>>  drivers/net/ethernet/intel/ixgbe/ixgbe.h         |   23 +
>>  drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c |   29 +
>>  drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c     |   78 +++-
>>  drivers/net/ethernet/intel/ixgbe/ixgbe_main.c    |  434 +++++++++++++++++++---
>>  4 files changed, 490 insertions(+), 74 deletions(-)
>>
>> --
>> Signature
> 
> Thanks. I tested using samples/bpf/xdp1 and xdp2 using ping and dpdk
> pktgen. Both work OK.
> 
> When enabling xdp, dmesg shows:
> [12270.610462] pps pps0: new PPS source ptp6
> [12270.610465] ixgbe 0000:05:00.0: registered PHC device on enp5s0f0
> [12271.619018] ixgbe 0000:05:00.0: removed PHC on enp5s0f0
> [12271.943334] ixgbe 0000:05:00.0: Multiqueue Enabled: Rx Queue count
> = 16, Tx Queue count = 16 XDP Queue count = 0
> [12272.011324] pps pps0: new PPS source ptp6
> [12272.011326] ixgbe 0000:05:00.0: registered PHC device on enp5s0f0
> [12276.477066] ixgbe 0000:05:00.0 enp5s0f0: NIC Link is Up 10 Gbps,
> Flow Control: None
> 
> I'm not sure it's important or not.
> Regards,
> William
> 

Well that is a bit odd. When you load the XDP program we should see a
"XDP Queue count" equal to the cpu count from /proc/cpuinfo. But if this
is from either after unloading a XDP program or from initial loading the
module before an XDP program is loaded than zero is expected. The queues
are only added after the XDP program is loaded.

Thanks,
John



More information about the Intel-wired-lan mailing list