netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 00/12] udp_tunnel: NIC RX port offload infrastructure
@ 2020-07-14  0:30 Jakub Kicinski
  2020-07-14  0:30 ` [PATCH net-next 01/12] nfp: convert to new udp_tunnel_nic infra Jakub Kicinski
                   ` (11 more replies)
  0 siblings, 12 replies; 16+ messages in thread
From: Jakub Kicinski @ 2020-07-14  0:30 UTC (permalink / raw)
  To: davem
  Cc: netdev, oss-drivers, simon.horman, ajit.khaparde,
	sriharsha.basavapatna, somnath.kotur, thomas.lendacky, aelior,
	skalluru, vishal, benve, _govind, dchickles, sburla, fmanlunas,
	jeffrey.t.kirsher, anthony.l.nguyen, GR-everest-linux-l2,
	shshaikh, manishc, GR-Linux-NIC-Dev, Jakub Kicinski

Hi!

This set of patches converts further drivers to use the new
infrastructure to UDP tunnel port offload merged in
commit 0ea460474d70 ("Merge branch 'udp_tunnel-add-NIC-RX-port-offload-infrastructure'").

Jakub Kicinski (12):
  nfp: convert to new udp_tunnel_nic infra
  be2net: convert to new udp_tunnel_nic infra
  xgbe: switch to more generic VxLAN detection
  xgbe: convert to new udp_tunnel_nic infra
  bnx2x: convert to new udp_tunnel_nic infra
  cxgb4: convert to new udp_tunnel_nic infra
  enic: convert to new udp_tunnel_nic infra
  liquidio: convert to new udp_tunnel_nic infra
  liquidio_vf: convert to new udp_tunnel_nic infra
  fm10k: convert to new udp_tunnel_nic infra
  qede: convert to new udp_tunnel_nic infra
  qlcnic: convert to new udp_tunnel_nic infra

 drivers/net/ethernet/amd/xgbe/xgbe-drv.c      | 273 +++---------------
 drivers/net/ethernet/amd/xgbe/xgbe-main.c     |  12 +-
 drivers/net/ethernet/amd/xgbe/xgbe.h          |  13 +-
 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h   |   8 +-
 .../net/ethernet/broadcom/bnx2x/bnx2x_cmn.h   |   8 +-
 .../net/ethernet/broadcom/bnx2x/bnx2x_main.c  | 136 ++-------
 .../net/ethernet/cavium/liquidio/lio_main.c   |  59 ++--
 .../ethernet/cavium/liquidio/lio_vf_main.c    |  59 ++--
 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h    |   2 -
 .../net/ethernet/chelsio/cxgb4/cxgb4_main.c   | 108 ++-----
 drivers/net/ethernet/cisco/enic/enic_main.c   | 105 +++----
 drivers/net/ethernet/emulex/benet/be.h        |   5 -
 drivers/net/ethernet/emulex/benet/be_main.c   | 198 +++----------
 drivers/net/ethernet/intel/fm10k/fm10k.h      |  10 +-
 drivers/net/ethernet/intel/fm10k/fm10k_main.c |   9 +-
 .../net/ethernet/intel/fm10k/fm10k_netdev.c   | 164 ++---------
 drivers/net/ethernet/intel/fm10k/fm10k_pci.c  |   4 -
 drivers/net/ethernet/netronome/nfp/nfp_net.h  |   5 -
 .../ethernet/netronome/nfp/nfp_net_common.c   | 126 +++-----
 drivers/net/ethernet/qlogic/qede/qede.h       |   1 +
 .../net/ethernet/qlogic/qede/qede_filter.c    | 142 +++------
 drivers/net/ethernet/qlogic/qede/qede_main.c  |  18 +-
 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h   |   7 +-
 .../ethernet/qlogic/qlcnic/qlcnic_83xx_init.c |  31 +-
 .../net/ethernet/qlogic/qlcnic/qlcnic_main.c  |  64 ++--
 25 files changed, 393 insertions(+), 1174 deletions(-)

-- 
2.26.2


^ permalink raw reply	[flat|nested] 16+ messages in thread
* RE: [PATCH net-next 08/12] liquidio: convert to new udp_tunnel_nic infra
@ 2020-07-14  1:59 Derek Chickles
  0 siblings, 0 replies; 16+ messages in thread
From: Derek Chickles @ 2020-07-14  1:59 UTC (permalink / raw)
  To: Jakub Kicinski, davem@davemloft.net
  Cc: netdev@vger.kernel.org, oss-drivers@netronome.com,
	simon.horman@netronome.com, ajit.khaparde@broadcom.com,
	sriharsha.basavapatna@broadcom.com, somnath.kotur@broadcom.com,
	thomas.lendacky@amd.com, Ariel Elior, Sudarsana Reddy Kalluru,
	vishal@chelsio.com, benve@cisco.com, _govind@gmx.com,
	Satananda Burla, Felix Manlunas, jeffrey.t.kirsher@intel.com,
	anthony.l.nguyen@intel.com, GR-everest-linux-l2, Shahed Shaikh,
	Manish Chopra, GR-Linux-NIC-Dev

> From: Jakub Kicinski <kuba@kernel.org>
> Sent: Monday, July 13, 2020 5:31 PM
> To: davem@davemloft.net
> Cc: netdev@vger.kernel.org; oss-drivers@netronome.com;
> simon.horman@netronome.com; ajit.khaparde@broadcom.com;
> sriharsha.basavapatna@broadcom.com; somnath.kotur@broadcom.com;
> thomas.lendacky@amd.com; Ariel Elior <aelior@marvell.com>; Sudarsana
> Reddy Kalluru <skalluru@marvell.com>; vishal@chelsio.com;
> benve@cisco.com; _govind@gmx.com; Derek Chickles
> <dchickles@marvell.com>; Satananda Burla <sburla@marvell.com>; Felix
> Manlunas <fmanlunas@marvell.com>; jeffrey.t.kirsher@intel.com;
> anthony.l.nguyen@intel.com; GR-everest-linux-l2 <GR-everest-linux-
> l2@marvell.com>; Shahed Shaikh <shshaikh@marvell.com>; Manish Chopra
> <manishc@marvell.com>; GR-Linux-NIC-Dev <GR-Linux-NIC-
> Dev@marvell.com>; Jakub Kicinski <kuba@kernel.org>
> Subject: [EXT] [PATCH net-next 08/12] liquidio: convert to new
> udp_tunnel_nic infra
> 
> This driver is just a super thin FW interface. Assume it wants 256 ports at
> most. Not much we can do here.

It actually supports 1024. Can you change this patch accordingly? Same goes for lio_vf_main.c.

Thanks,
Derek




> 
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
>  .../net/ethernet/cavium/liquidio/lio_main.c   | 59 +++++++++++--------
>  1 file changed, 33 insertions(+), 26 deletions(-)
> 
> diff --git a/drivers/net/ethernet/cavium/liquidio/lio_main.c
> b/drivers/net/ethernet/cavium/liquidio/lio_main.c
> index 19689d72bc4e..dc620cb78fd5 100644
> --- a/drivers/net/ethernet/cavium/liquidio/lio_main.c
> +++ b/drivers/net/ethernet/cavium/liquidio/lio_main.c
> @@ -2670,6 +2670,35 @@ static int liquidio_vxlan_port_command(struct
> net_device *netdev, int command,
>  	return ret;
>  }
> 
> +static int liquidio_udp_tunnel_set_port(struct net_device *netdev,
> +					unsigned int table, unsigned int entry,
> +					struct udp_tunnel_info *ti)
> +{
> +	return liquidio_vxlan_port_command(netdev,
> +
> OCTNET_CMD_VXLAN_PORT_CONFIG,
> +					   htons(ti->port),
> +					   OCTNET_CMD_VXLAN_PORT_ADD);
> +}
> +
> +static int liquidio_udp_tunnel_unset_port(struct net_device *netdev,
> +					  unsigned int table,
> +					  unsigned int entry,
> +					  struct udp_tunnel_info *ti)
> +{
> +	return liquidio_vxlan_port_command(netdev,
> +
> OCTNET_CMD_VXLAN_PORT_CONFIG,
> +					   htons(ti->port),
> +					   OCTNET_CMD_VXLAN_PORT_DEL);
> +}
> +
> +static const struct udp_tunnel_nic_info liquidio_udp_tunnels = {
> +	.set_port	= liquidio_udp_tunnel_set_port,
> +	.unset_port	= liquidio_udp_tunnel_unset_port,
> +	.tables		= {
> +		{ .n_entries = 256, .tunnel_types =
> UDP_TUNNEL_TYPE_VXLAN, },
> +	},
> +};


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2020-07-14 15:07 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-14  0:30 [PATCH net-next 00/12] udp_tunnel: NIC RX port offload infrastructure Jakub Kicinski
2020-07-14  0:30 ` [PATCH net-next 01/12] nfp: convert to new udp_tunnel_nic infra Jakub Kicinski
2020-07-14 15:07   ` Simon Horman
2020-07-14  0:30 ` [PATCH net-next 02/12] be2net: " Jakub Kicinski
2020-07-14  0:30 ` [PATCH net-next 03/12] xgbe: switch to more generic VxLAN detection Jakub Kicinski
2020-07-14  0:30 ` [PATCH net-next 04/12] xgbe: convert to new udp_tunnel_nic infra Jakub Kicinski
2020-07-14  3:25   ` kernel test robot
2020-07-14  0:30 ` [PATCH net-next 05/12] bnx2x: " Jakub Kicinski
2020-07-14  0:30 ` [PATCH net-next 06/12] cxgb4: " Jakub Kicinski
2020-07-14  0:30 ` [PATCH net-next 07/12] enic: " Jakub Kicinski
2020-07-14  0:30 ` [PATCH net-next 08/12] liquidio: " Jakub Kicinski
2020-07-14  0:30 ` [PATCH net-next 09/12] liquidio_vf: " Jakub Kicinski
2020-07-14  0:30 ` [PATCH net-next 10/12] fm10k: " Jakub Kicinski
2020-07-14  0:30 ` [PATCH net-next 11/12] qede: " Jakub Kicinski
2020-07-14  0:30 ` [PATCH net-next 12/12] qlcnic: " Jakub Kicinski
  -- strict thread matches above, loose matches on Subject: below --
2020-07-14  1:59 [PATCH net-next 08/12] liquidio: " Derek Chickles

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).