[Intel-wired-lan] [v4,09/15] ice: Configure VSIs for Tx/Rx

Brelinski, TonyX tonyx.brelinski at intel.com
Fri Mar 23 22:48:46 UTC 2018


> -----Original Message-----
> From: Anirudh Venkataramanan
> [mailto:anirudh.venkataramanan at intel.com]
> Sent: Tuesday, March 20, 2018 7:58 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [v4,09/15] ice: Configure VSIs for Tx/Rx
> 
> This patch configures the VSIs to be able to send and receive
> packets by doing the following:
> 
> 1) Initialize flexible parser to extract and include certain
>    fields in the Rx descriptor.
> 
> 2) Add Tx queues by programming the Tx queue context (implemented in
>    ice_vsi_cfg_txqs). Note that adding the queues also enables (starts)
>    the queues.
> 
> 3) Add Rx queues by programming Rx queue context (implemented in
>    ice_vsi_cfg_rxqs). Note that this only adds queues but doesn't start
>    them. The rings will be started by calling ice_vsi_start_rx_rings on
>    interface up.
> 
> 4) Configure interrupts for VSI queues.
> 
> 5) Implement ice_open and ice_stop.
> 
> Signed-off-by: Anirudh Venkataramanan
> <anirudh.venkataramanan at intel.com>
> ---
>  drivers/net/ethernet/intel/ice/Makefile         |    3 +-
>  drivers/net/ethernet/intel/ice/ice.h            |   36 +-
>  drivers/net/ethernet/intel/ice/ice_adminq_cmd.h |   86 ++
>  drivers/net/ethernet/intel/ice/ice_common.c     |  602 ++++++++++++
>  drivers/net/ethernet/intel/ice/ice_common.h     |   13 +
>  drivers/net/ethernet/intel/ice/ice_hw_autogen.h |   59 ++
>  drivers/net/ethernet/intel/ice/ice_lan_tx_rx.h  |  260 ++++++
>  drivers/net/ethernet/intel/ice/ice_main.c       | 1140
> ++++++++++++++++++++++-
>  drivers/net/ethernet/intel/ice/ice_sched.c      |  105 +++
>  drivers/net/ethernet/intel/ice/ice_sched.h      |    5 +
>  drivers/net/ethernet/intel/ice/ice_status.h     |    2 +
>  drivers/net/ethernet/intel/ice/ice_txrx.c       |  375 ++++++++
>  drivers/net/ethernet/intel/ice/ice_txrx.h       |   75 ++
>  drivers/net/ethernet/intel/ice/ice_type.h       |    2 +
>  14 files changed, 2757 insertions(+), 6 deletions(-)
>  create mode 100644 drivers/net/ethernet/intel/ice/ice_lan_tx_rx.h
>  create mode 100644 drivers/net/ethernet/intel/ice/ice_txrx.c

Tested-by: Tony Brelinski <tonyx.brelinski at intel.com>




More information about the Intel-wired-lan mailing list