[PATCH] PCI: Check/Set ARI capability before setting numVFs

2017-10-04 Thread Tony Nguyen
that the values being populated properly take the ARI bit into account. CC: Alexander Duyck <alexander.h.du...@intel.com> CC: Emil Tantilov <emil.s.tanti...@intel.com> Signed-off-by: Tony Nguyen <anthony.l.ngu...@intel.com> --- drivers/pci/iov.c | 4 1 file changed, 4 insertions(+) di

[PATCH 2/5] ixgbevf: Add support for XDP_TX action

2018-03-16 Thread Tony Nguyen
queues that ixgbe has. Also, based on the number of queues available, the number of TX queues may be reduced when an XDP program is loaded in order to accommodate the XDP queues. Based largely on commit 33fdc82f0883 ("ixgbe: add support for XDP_TX action") Signed-off-by: Tony Nguyen <

[PATCH 5/5] ixgbevf: Add XDP queue stats reporting

2018-03-16 Thread Tony Nguyen
XDP stats are included in TX stats, however, they are not reported in TX queue stats since they are setup on different queues. Add reporting for XDP queue stats to provide consistency between the total stats and per queue stats. Signed-off-by: Tony Nguyen <anthony.l.ngu...@intel.com>

[PATCH 1/5] ixgbevf: Add XDP support for pass and drop actions

2018-03-16 Thread Tony Nguyen
Implement XDP_PASS and XDP_DROP based on the ixgbe implementation. Based largely on commit 924708081629 ("ixgbe: add XDP support for pass and drop actions"). Signed-off-by: Tony Nguyen <anthony.l.ngu...@intel.com> Acked-by: John Fastabend <john.fastab...@gmail.com> ---

[PATCH 4/5] ixgbevf: Add support for meta data

2018-03-16 Thread Tony Nguyen
Add support for XDP meta data when using build skb. Based on commit 366a88fe2f40 ("bpf, ixgbe: add meta data support") Signed-off-by: Tony Nguyen <anthony.l.ngu...@intel.com> Acked-by: John Fastabend <john.fastab...@gmail.com> --- drivers/net/ethernet/intel/ixgbe

[PATCH 3/5] ixgbevf: Delay tail write for XDP packets

2018-03-16 Thread Tony Nguyen
Current XDP implementation hits the tail on every XDP_TX; change the driver to only hit the tail after packet processing is complete. Based on commit 7379f97a4fce ("ixgbe: delay tail write to every 'n' packets") Signed-off-by: Tony Nguyen <anthony.l.ngu...@intel.com> Acked-by

[PATCH 0/5] Enable XDP for ixgbevf

2018-03-16 Thread Tony Nguyen
This patch series implements support for XDP on ixgbevf; it is mainly based on the ixgbe implementation and supports the following actions: XDP_PASS, XDP_DROP, and XDP_TX. Tony Nguyen (5): ixgbevf: Add XDP support for pass and drop actions ixgbevf: Add support for XDP_TX action ixgbevf