dpdk.git
7 years agonet/qede/base: revamp qm initialization
Rasesh Mody [Wed, 29 Mar 2017 20:36:20 +0000 (13:36 -0700)]
net/qede/base: revamp qm initialization

This patch revamps queue initialization.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
7 years agonet/qede/base: allow only trusted VFs to be promisc
Rasesh Mody [Wed, 29 Mar 2017 20:36:19 +0000 (13:36 -0700)]
net/qede/base: allow only trusted VFs to be promisc

Allow only trusted VFs to be promisc/multi-promisc. The reasonable
thing is to use the 'trusted' node instead of simply allowing VFs to
become promiscuous.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
7 years agonet/qede/base: remove unneeded step in HW init
Rasesh Mody [Wed, 29 Mar 2017 20:36:18 +0000 (13:36 -0700)]
net/qede/base: remove unneeded step in HW init

There is no need to close the OUT_EN NIG registers, so remove that.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
7 years agonet/qede/base: allow probe to succeed with minor HW-issues
Rasesh Mody [Wed, 29 Mar 2017 20:36:17 +0000 (13:36 -0700)]
net/qede/base: allow probe to succeed with minor HW-issues

Allow probe to succeed with various 'minor' HW-issues [if requested]

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
7 years agonet/qede/base: read card personality via MFW commands
Rasesh Mody [Wed, 29 Mar 2017 20:36:16 +0000 (13:36 -0700)]
net/qede/base: read card personality via MFW commands

Add support to read NIC personality via management FW for non-L2
protocols.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
7 years agonet/qede/base: prevent device init failure
Rasesh Mody [Wed, 29 Mar 2017 20:36:15 +0000 (13:36 -0700)]
net/qede/base: prevent device init failure

Device initialization flow should not be failed because the FW interface
command is not available.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
7 years agonet/qede/base: update MFW when default MTU is changed
Rasesh Mody [Wed, 29 Mar 2017 20:36:14 +0000 (13:36 -0700)]
net/qede/base: update MFW when default MTU is changed

Send mailbox command to Management FW when MTU changes.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
7 years agonet/qede/base: change queue/sb-id from 8 bit to 16 bit
Rasesh Mody [Wed, 29 Mar 2017 20:36:13 +0000 (13:36 -0700)]
net/qede/base: change queue/sb-id from 8 bit to 16 bit

Change the queue/sb-id values from 8 bit fields to 16 bit fields.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
7 years agonet/qede/base: use default MTU from shared memory
Rasesh Mody [Wed, 29 Mar 2017 20:36:12 +0000 (13:36 -0700)]
net/qede/base: use default MTU from shared memory

Read and use the default MTU value from shared-memory.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
7 years agonet/qede/base: add comment
Rasesh Mody [Wed, 29 Mar 2017 20:36:11 +0000 (13:36 -0700)]
net/qede/base: add comment

Add a comment for the endianness manipulation in
ecore_mcp_send_drv_version().

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
7 years agonet/qede/base: add nvram options
Rasesh Mody [Wed, 29 Mar 2017 20:36:10 +0000 (13:36 -0700)]
net/qede/base: add nvram options

Add a bunch of NVRAM options like MCOT, FEC selection, temperature
threshold, Reset On Lan, etc.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
7 years agonet/qede/base: remove attribute from update current config
Rasesh Mody [Wed, 29 Mar 2017 20:36:09 +0000 (13:36 -0700)]
net/qede/base: remove attribute from update current config

Remove attribute field from update_current_config() API, Management FW
need to know only the last entity who configured the device.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
7 years agonet/qede/base: move mask constants defining NIC type
Rasesh Mody [Wed, 29 Mar 2017 20:36:08 +0000 (13:36 -0700)]
net/qede/base: move mask constants defining NIC type

Move mask constants defining NIC type to ecore.h

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
7 years agonet/qede/base: decrease maximum HW func per device
Rasesh Mody [Wed, 29 Mar 2017 20:36:07 +0000 (13:36 -0700)]
net/qede/base: decrease maximum HW func per device

Decrease MAX_HWFNS_PER_DEVICE from 4 to 2

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
7 years agonet/qede: upgrade the FW to 8.18.9.0
Rasesh Mody [Wed, 29 Mar 2017 20:36:06 +0000 (13:36 -0700)]
net/qede: upgrade the FW to 8.18.9.0

This patchset adds changes to upgrade to 8.18.9.0 FW.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
7 years agonet/qede/base: utilize FW 8.18.9.0
Rasesh Mody [Wed, 29 Mar 2017 20:36:05 +0000 (13:36 -0700)]
net/qede/base: utilize FW 8.18.9.0

This change is in preparation to work with new FW 8.18.9.0.
Rename the defines to use E4_ and structs to use e4_. This renaming
is to add support for future chipsets.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
7 years agonet/qede/base: print various indication on Tx-timeouts
Rasesh Mody [Wed, 29 Mar 2017 20:36:04 +0000 (13:36 -0700)]
net/qede/base: print various indication on Tx-timeouts

Print various indication on Tx-timeouts.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
7 years agonet/qede/base: mask Rx buffer attention bits
Rasesh Mody [Wed, 29 Mar 2017 20:36:03 +0000 (13:36 -0700)]
net/qede/base: mask Rx buffer attention bits

Mask the BRB "RC0_EOP_OUT_SYNC_FIFO_PUSH_ERROR" attention.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
7 years agonet/qede/base: send FW version driver state to MFW
Rasesh Mody [Wed, 29 Mar 2017 20:36:02 +0000 (13:36 -0700)]
net/qede/base: send FW version driver state to MFW

Add support to send FW version and driver state to Management FW.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
7 years agonet/qede/base: return an initialized return value
Rasesh Mody [Wed, 29 Mar 2017 20:36:01 +0000 (13:36 -0700)]
net/qede/base: return an initialized return value

Make sure ecore_iov_mark_vf_flr() always returns an initialized return
value.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
7 years agodoc: detail new tap features in release note
Pascal Mazon [Mon, 27 Mar 2017 14:02:21 +0000 (16:02 +0200)]
doc: detail new tap features in release note

Signed-off-by: Pascal Mazon <pascal.mazon@6wind.com>
Acked-by: Keith Wiles <keith.wiles@intel.com>
7 years agonet/fm10k: fix pointer cast
Xiao Wang [Tue, 28 Mar 2017 03:57:47 +0000 (20:57 -0700)]
net/fm10k: fix pointer cast

The device specific data is located at dev->data->dev_private.

Fixes: 162f32290a99 ("fm10k: move parameters initialization")
Fixes: 039991bc28ff ("fm10k: add vector pre-condition check")
Fixes: 77a8ab47eb38 ("fm10k: select best Rx function")
Cc: stable@dpdk.org
Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
7 years agodoc: add AVP
Allain Legacy [Tue, 28 Mar 2017 11:54:09 +0000 (07:54 -0400)]
doc: add AVP

Updates the documentation and feature lists for the AVP PMD device.

Signed-off-by: Allain Legacy <allain.legacy@windriver.com>
Signed-off-by: Matt Peters <matt.peters@windriver.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
Acked-by: Vincent Jardin <vincent.jardin@6wind.com>
7 years agonet/avp: handle interrupt migration
Allain Legacy [Tue, 28 Mar 2017 11:54:08 +0000 (07:54 -0400)]
net/avp: handle interrupt migration

This commit introduces changes required to support VM live-migration.  This
is done by registering and responding to interrupts coming from the host to
signal that the memory is about to be made invalid and replaced with a new
memory zone on the destination compute node.

Enabling and disabling of the interrupts are maintained outside of the
start/stop functions because they must be enabled for the lifetime of the
device.  This is so that host interrupts are serviced and acked even in
cases where the app may have stopped the device.

Signed-off-by: Allain Legacy <allain.legacy@windriver.com>
Signed-off-by: Matt Peters <matt.peters@windriver.com>
Acked-by: Vincent Jardin <vincent.jardin@6wind.com>
7 years agonet/avp: add device start and stop operations
Allain Legacy [Tue, 28 Mar 2017 11:54:07 +0000 (07:54 -0400)]
net/avp: add device start and stop operations

Adds support for device start and stop functions.  This allows an
application to control the administrative state of an AVP device.  Stopping
the device will notify the host application to stop sending packets on that
device's receive queues.

Signed-off-by: Allain Legacy <allain.legacy@windriver.com>
Signed-off-by: Matt Peters <matt.peters@windriver.com>
Acked-by: Vincent Jardin <vincent.jardin@6wind.com>
7 years agonet/avp: add device promiscuous functions
Allain Legacy [Tue, 28 Mar 2017 11:54:06 +0000 (07:54 -0400)]
net/avp: add device promiscuous functions

Adds support for setting and clearing promiscuous mode on an AVP device.
When enabled the _mac_filter function will allow packets destined to any
MAC address to be processed by the receive functions.

Signed-off-by: Allain Legacy <allain.legacy@windriver.com>
Signed-off-by: Matt Peters <matt.peters@windriver.com>
Acked-by: Vincent Jardin <vincent.jardin@6wind.com>
7 years agonet/avp: add device statistics operations
Allain Legacy [Tue, 28 Mar 2017 11:54:05 +0000 (07:54 -0400)]
net/avp: add device statistics operations

Adds device functions to query and reset statistics.

Signed-off-by: Allain Legacy <allain.legacy@windriver.com>
Acked-by: Vincent Jardin <vincent.jardin@6wind.com>
7 years agonet/avp: add packet transmit functions
Allain Legacy [Tue, 28 Mar 2017 11:54:04 +0000 (07:54 -0400)]
net/avp: add packet transmit functions

Adds support for packet transmit functions so that an application can send
packets to the host application via an AVP device queue.  Both the simple
and scattered functions are supported.

Signed-off-by: Allain Legacy <allain.legacy@windriver.com>
Signed-off-by: Matt Peters <matt.peters@windriver.com>
Acked-by: Vincent Jardin <vincent.jardin@6wind.com>
7 years agonet/avp: add packet receive functions
Allain Legacy [Tue, 28 Mar 2017 11:54:03 +0000 (07:54 -0400)]
net/avp: add packet receive functions

Adds function required for receiving packets from the host application via
AVP device queues.  Both the simple and scattered functions are supported.

Signed-off-by: Allain Legacy <allain.legacy@windriver.com>
Signed-off-by: Matt Peters <matt.peters@windriver.com>
Acked-by: Vincent Jardin <vincent.jardin@6wind.com>
7 years agonet/avp: add queue setup and release
Allain Legacy [Tue, 28 Mar 2017 11:54:02 +0000 (07:54 -0400)]
net/avp: add queue setup and release

Adds queue management operations so that an application can setup and
release the transmit and receive queues.

Signed-off-by: Allain Legacy <allain.legacy@windriver.com>
Signed-off-by: Matt Peters <matt.peters@windriver.com>
Acked-by: Vincent Jardin <vincent.jardin@6wind.com>
7 years agonet/avp: add device configuration
Allain Legacy [Tue, 28 Mar 2017 11:54:01 +0000 (07:54 -0400)]
net/avp: add device configuration

Adds support for "dev_configure" operations to allow an application to
configure the device.

Signed-off-by: Allain Legacy <allain.legacy@windriver.com>
Signed-off-by: Matt Peters <matt.peters@windriver.com>
Acked-by: Vincent Jardin <vincent.jardin@6wind.com>
7 years agonet/avp: add device initialization
Allain Legacy [Tue, 28 Mar 2017 11:54:00 +0000 (07:54 -0400)]
net/avp: add device initialization

Adds support for initialization newly probed AVP PCI devices.  Initial
queue translations are setup in preparation for device configuration.

Signed-off-by: Allain Legacy <allain.legacy@windriver.com>
Signed-off-by: Matt Peters <matt.peters@windriver.com>
Acked-by: Vincent Jardin <vincent.jardin@6wind.com>
7 years agonet/avp: support driver registration
Allain Legacy [Tue, 28 Mar 2017 11:53:59 +0000 (07:53 -0400)]
net/avp: support driver registration

Adds the initial framework for registering the driver against the support
PCI device identifiers.

Signed-off-by: Allain Legacy <allain.legacy@windriver.com>
Signed-off-by: Matt Peters <matt.peters@windriver.com>
Acked-by: Vincent Jardin <vincent.jardin@6wind.com>
7 years agonet/avp: add debug log macros
Allain Legacy [Tue, 28 Mar 2017 11:53:58 +0000 (07:53 -0400)]
net/avp: add debug log macros

Adds a header file with log macros for the AVP PMD

Signed-off-by: Allain Legacy <allain.legacy@windriver.com>
Signed-off-by: Matt Peters <matt.peters@windriver.com>
Acked-by: Vincent Jardin <vincent.jardin@6wind.com>
7 years agonet/avp: add public header files
Allain Legacy [Tue, 28 Mar 2017 11:53:57 +0000 (07:53 -0400)]
net/avp: add public header files

Adds public/exported header files for the AVP PMD.  The AVP device is a
shared memory based device.  The structures and constants that define the
method of operation of the device must be visible by both the PMD and the
host DPDK application.  They must not change without proper version
controls and updates to both the hypervisor DPDK application and the PMD.

The hypervisor DPDK application is a Wind River Systems proprietary
virtual switch.

Signed-off-by: Allain Legacy <allain.legacy@windriver.com>
Signed-off-by: Matt Peters <matt.peters@windriver.com>
Acked-by: Vincent Jardin <vincent.jardin@6wind.com>
7 years agonet/avp: add base files
Allain Legacy [Tue, 28 Mar 2017 11:53:56 +0000 (07:53 -0400)]
net/avp: add base files

This commit introduces the AVP PMD file structure without adding any actual
driver functionality.  Functional blocks will be added in later patches.

Signed-off-by: Allain Legacy <allain.legacy@windriver.com>
Signed-off-by: Matt Peters <matt.peters@windriver.com>
Acked-by: Vincent Jardin <vincent.jardin@6wind.com>
7 years agonet/mlx5: fix returned values upon failed probing
Gaetan Rivet [Tue, 28 Mar 2017 14:13:12 +0000 (16:13 +0200)]
net/mlx5: fix returned values upon failed probing

Fixes: 771fa900b73a ("mlx5: introduce new driver for Mellanox ConnectX-4 adapters")
Cc: stable@dpdk.org
Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
7 years agonet/mlx4: fix returned values upon failed probing
Gaetan Rivet [Tue, 28 Mar 2017 14:13:11 +0000 (16:13 +0200)]
net/mlx4: fix returned values upon failed probing

Let error messages in place, but return unambiguous values upon
probing errors.

Fixes: 66e1591687ac ("mlx4: avoid init errors when kernel modules are not loaded")
Cc: stable@dpdk.org
Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
7 years agonet/mlx: enhance Rx scatter mode detection
Vasily Philipov [Tue, 28 Mar 2017 10:18:49 +0000 (13:18 +0300)]
net/mlx: enhance Rx scatter mode detection

Toggle Rx scatter mode based on the scatter_enable flag and the maximum
packet size only instead of deriving this information from the jumbo_frame
setting and the MTU configuration.

Signed-off-by: Vasily Philipov <vasilyf@mellanox.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
7 years agonet/mlx4: add port parameter
Gaetan Rivet [Mon, 27 Mar 2017 15:41:37 +0000 (17:41 +0200)]
net/mlx4: add port parameter

Most ConnectX-3 adapters expose two physical ports on a single PCI bus
address.

Add a new port parameter allowing the user to choose
either or both physical ports to be used by the application.

This parameter is used as follows:

Selecting only the second port:
   -w 00:00.0,port=1

Selecting both ports:
   -w 00:00.0,port=0,port=1

If no parameter is given, the default behavior is unchanged: all ports
are probed.

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
7 years agoapp/testpmd: set TC strict link priority mode
Wenzhuo Lu [Fri, 24 Feb 2017 03:24:35 +0000 (11:24 +0800)]
app/testpmd: set TC strict link priority mode

Add a CLI to set some TCs' strict link priority mode
on a physical port.

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
7 years agoapp/testpmd: set VF TC Tx max bandwidth
Wenzhuo Lu [Fri, 24 Feb 2017 03:24:34 +0000 (11:24 +0800)]
app/testpmd: set VF TC Tx max bandwidth

Add CLI to set a specific TC's max bandwidth
on a specific VF from PF.

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
7 years agoapp/testpmd: set VF TC Tx min bandwidth
Wenzhuo Lu [Fri, 24 Feb 2017 03:24:33 +0000 (11:24 +0800)]
app/testpmd: set VF TC Tx min bandwidth

Add CLI to set TCs' min bandwidth on a specific VF
from PF.

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
7 years agoapp/testpmd: set VF Tx max bandwidth
Wenzhuo Lu [Fri, 24 Feb 2017 03:24:32 +0000 (11:24 +0800)]
app/testpmd: set VF Tx max bandwidth

Add CLI to set a specific VF's TX max bandwidth
from PF.

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
7 years agonet/i40e: set TC strict priority mode
Wenzhuo Lu [Fri, 24 Feb 2017 03:24:31 +0000 (11:24 +0800)]
net/i40e: set TC strict priority mode

Set some TCs to strict priority mode.
It's a global setting on a physical port.

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
7 years agonet/i40e: set VF TC max bandwidth from PF
Wenzhuo Lu [Fri, 24 Feb 2017 03:24:30 +0000 (11:24 +0800)]
net/i40e: set VF TC max bandwidth from PF

Set a specific TC's max bandwidth on a VF.
User can call the API to set VF TC's max bandwidth
from PF.

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
7 years agonet/i40e: allocate VF TC bandwidth from PF
Wenzhuo Lu [Fri, 24 Feb 2017 03:24:29 +0000 (11:24 +0800)]
net/i40e: allocate VF TC bandwidth from PF

Allocate all TCs' relative bandwidth (percentage) on
a specific VF.
It can be taken as relative min bandwidth setting.
User can call the API to set VF TC's min bandwidth
from PF.

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
7 years agonet/i40e: set VF max bandwidth from PF
Wenzhuo Lu [Fri, 24 Feb 2017 03:24:28 +0000 (11:24 +0800)]
net/i40e: set VF max bandwidth from PF

Support setting VF max bandwidth from PF.
User can call the API on PF to set a specific VF's
max bandwidth.

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
7 years agodoc: add liquidio
Shijith Thotton [Sat, 25 Mar 2017 06:24:57 +0000 (11:54 +0530)]
doc: add liquidio

Add liquidio driver documentation and update 17.05 release notes.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add API to add and remove VLAN port
Shijith Thotton [Sat, 25 Mar 2017 06:24:56 +0000 (11:54 +0530)]
net/liquidio: add API to add and remove VLAN port

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add API to close device
Shijith Thotton [Sat, 25 Mar 2017 06:24:55 +0000 (11:54 +0530)]
net/liquidio: add API to close device

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add API to stop device
Shijith Thotton [Sat, 25 Mar 2017 06:24:54 +0000 (11:54 +0530)]
net/liquidio: add API to stop device

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add APIs for hardware stats
Shijith Thotton [Sat, 25 Mar 2017 06:24:53 +0000 (11:54 +0530)]
net/liquidio: add APIs for hardware stats

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: support Tx stats
Shijith Thotton [Sat, 25 Mar 2017 06:24:52 +0000 (11:54 +0530)]
net/liquidio: support Tx stats

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: support Rx stats
Shijith Thotton [Sat, 25 Mar 2017 06:24:51 +0000 (11:54 +0530)]
net/liquidio: support Rx stats

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add APIs to configure UDP tunnel port
Shijith Thotton [Sat, 25 Mar 2017 06:24:50 +0000 (11:54 +0530)]
net/liquidio: add APIs to configure UDP tunnel port

Add APIs to configure VXLAN port and enable tunnel checksum.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add APIs to set link up and down
Shijith Thotton [Sat, 25 Mar 2017 06:24:49 +0000 (11:54 +0530)]
net/liquidio: add APIs to set link up and down

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add APIs to enable and disable multicast
Shijith Thotton [Sat, 25 Mar 2017 06:24:48 +0000 (11:54 +0530)]
net/liquidio: add APIs to enable and disable multicast

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add API to validate VF MTU
Shijith Thotton [Sat, 25 Mar 2017 06:24:47 +0000 (11:54 +0530)]
net/liquidio: add API to validate VF MTU

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add API to get device info
Shijith Thotton [Sat, 25 Mar 2017 06:24:46 +0000 (11:54 +0530)]
net/liquidio: add API to get device info

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: support RSS
Shijith Thotton [Sat, 25 Mar 2017 06:24:45 +0000 (11:54 +0530)]
net/liquidio: support RSS

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add API to control Rx
Shijith Thotton [Sat, 25 Mar 2017 06:24:44 +0000 (11:54 +0530)]
net/liquidio: add API to control Rx

Enable or disable packet reception.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add APIs to alloc and send control command
Shijith Thotton [Sat, 25 Mar 2017 06:24:43 +0000 (11:54 +0530)]
net/liquidio: add APIs to alloc and send control command

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add APIs to start device and update link
Shijith Thotton [Sat, 25 Mar 2017 06:24:42 +0000 (11:54 +0530)]
net/liquidio: add APIs to start device and update link

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add API to release Tx queue
Shijith Thotton [Sat, 25 Mar 2017 06:24:41 +0000 (11:54 +0530)]
net/liquidio: add API to release Tx queue

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add API to flush IQ
Shijith Thotton [Sat, 25 Mar 2017 06:24:40 +0000 (11:54 +0530)]
net/liquidio: add API to flush IQ

API to flush instruction queue checks how many packets reached device
and frees associated host buffers using request list.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add Tx data path for multiple segments
Shijith Thotton [Sat, 25 Mar 2017 06:24:39 +0000 (11:54 +0530)]
net/liquidio: add Tx data path for multiple segments

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add Tx data path for single segment
Shijith Thotton [Sat, 25 Mar 2017 06:24:38 +0000 (11:54 +0530)]
net/liquidio: add Tx data path for single segment

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add APIs to enable and disable IO queues
Shijith Thotton [Sat, 25 Mar 2017 06:24:37 +0000 (11:54 +0530)]
net/liquidio: add APIs to enable and disable IO queues

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add APIs for SG list
Shijith Thotton [Sat, 25 Mar 2017 06:24:36 +0000 (11:54 +0530)]
net/liquidio: add APIs for SG list

Add APIs to setup and free Scatter-Gather list. SG list is used while
sending packets with multiple segments.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add API to setup Tx queue
Shijith Thotton [Sat, 25 Mar 2017 06:24:35 +0000 (11:54 +0530)]
net/liquidio: add API to setup Tx queue

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add API to release Rx queue
Shijith Thotton [Sat, 25 Mar 2017 06:24:34 +0000 (11:54 +0530)]
net/liquidio: add API to release Rx queue

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add Rx data path
Shijith Thotton [Sat, 25 Mar 2017 06:24:33 +0000 (11:54 +0530)]
net/liquidio: add Rx data path

Add APIs to receive packets and re-fill ring buffers.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: initialize Rx queue
Shijith Thotton [Sat, 25 Mar 2017 06:24:32 +0000 (11:54 +0530)]
net/liquidio: initialize Rx queue

Initialize Rx queue registers and allocate packet buffers for Rx queue.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add API to setup Rx queue
Shijith Thotton [Sat, 25 Mar 2017 06:24:31 +0000 (11:54 +0530)]
net/liquidio: add API to setup Rx queue

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add API to configure device
Shijith Thotton [Sat, 25 Mar 2017 06:24:30 +0000 (11:54 +0530)]
net/liquidio: add API to configure device

Add API to configure device and initialize ethernet device operations.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add API to send packet to device
Shijith Thotton [Sat, 25 Mar 2017 06:24:29 +0000 (11:54 +0530)]
net/liquidio: add API to send packet to device

Add API to send control and data packets to device. Request list keeps
track of host buffers to be freed till it reaches device.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add APIs for response list
Shijith Thotton [Sat, 25 Mar 2017 06:24:28 +0000 (11:54 +0530)]
net/liquidio: add APIs for response list

Add APIs to setup and process response list. Response list holds soft
commands waiting for response from device. Entries of this list are
processed to check for command response or timeout.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add APIs to allocate and free soft command
Shijith Thotton [Sat, 25 Mar 2017 06:24:27 +0000 (11:54 +0530)]
net/liquidio: add APIs to allocate and free soft command

Get buffers from SC buffer pool and create soft command. Buffers are
freed to the pool once the command reaches device.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add APIs to allocate and free SC buffer pool
Shijith Thotton [Sat, 25 Mar 2017 06:24:26 +0000 (11:54 +0530)]
net/liquidio: add APIs to allocate and free SC buffer pool

Soft command (SC) holds device control command and related information.
SC buffer pool holds buffers which are used during soft command
allocation.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add API to setup IQ
Shijith Thotton [Sat, 25 Mar 2017 06:24:25 +0000 (11:54 +0530)]
net/liquidio: add API to setup IQ

Map instruction queue registers and set queue size.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add APIs to allocate and free IQ
Shijith Thotton [Sat, 25 Mar 2017 06:24:24 +0000 (11:54 +0530)]
net/liquidio: add APIs to allocate and free IQ

Instruction queue (IQ) is used to send control and data packets to
device from host. IQ 0 is used to send device configuration commands
during initialization and later re-allocated as per application
requirement.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add API for VF FLR
Shijith Thotton [Sat, 25 Mar 2017 06:24:23 +0000 (11:54 +0530)]
net/liquidio: add API for VF FLR

VF sends Function Level Reset request to PF using mbox and PF does the
reset.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add API for PF VF handshake
Shijith Thotton [Sat, 25 Mar 2017 06:24:22 +0000 (11:54 +0530)]
net/liquidio: add API for PF VF handshake

Handshake with PF kernel driver to check driver version compatibility.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add API to setup mbox registers
Shijith Thotton [Sat, 25 Mar 2017 06:24:21 +0000 (11:54 +0530)]
net/liquidio: add API to setup mbox registers

Map and initialize mbox registers.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add mbox APIs for PF VF communication
Shijith Thotton [Sat, 25 Mar 2017 06:24:20 +0000 (11:54 +0530)]
net/liquidio: add mbox APIs for PF VF communication

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add API to setup IO queue registers
Shijith Thotton [Sat, 25 Mar 2017 06:24:19 +0000 (11:54 +0530)]
net/liquidio: add API to setup IO queue registers

Set default configuration values for input and output queue registers.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add API to disable IO queues
Shijith Thotton [Sat, 25 Mar 2017 06:24:18 +0000 (11:54 +0530)]
net/liquidio: add API to disable IO queues

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: initialize
Shijith Thotton [Sat, 25 Mar 2017 06:24:17 +0000 (11:54 +0530)]
net/liquidio: initialize

Default device configuration and initialization code.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio/base: read and write register
Shijith Thotton [Sat, 25 Mar 2017 06:24:16 +0000 (11:54 +0530)]
net/liquidio/base: read and write register

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: register VF
Shijith Thotton [Sat, 25 Mar 2017 06:24:15 +0000 (11:54 +0530)]
net/liquidio: register VF

Register LiquidIO PMD (net_liovf) and define APIs to init and uninit.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add log
Shijith Thotton [Sat, 25 Mar 2017 06:24:14 +0000 (11:54 +0530)]
net/liquidio: add log

Add debug options to config file. Define macros used for log and make
use of config file options to enable them.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio/base: add hardware register definitions
Shijith Thotton [Sat, 25 Mar 2017 06:24:13 +0000 (11:54 +0530)]
net/liquidio/base: add hardware register definitions

Add HW register definitions for LiquidIO II CN23XX adapter.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/liquidio: add skeleton
Shijith Thotton [Sat, 25 Mar 2017 06:24:12 +0000 (11:54 +0530)]
net/liquidio: add skeleton

Add makefile and config file options to compile PMD. Add feature and
version map file. Update maintainers file to claim responsibility.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Venkat Koppula <venkat.koppula@caviumnetworks.com>
Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
Signed-off-by: Mallesham Jatharakonda <mjatharakonda@oneconvergence.com>
7 years agonet/ixgbe: fix TC bandwidth setting
Wenzhuo Lu [Fri, 24 Mar 2017 02:51:03 +0000 (10:51 +0800)]
net/ixgbe: fix TC bandwidth setting

4 and 8 TCs are supported on ixgbe. By default there're
8 TCs. So when initializing the device, the bandwidth for
8 TCs is set.
When changing the TC number, it's only considered setting
the bandwidth for 4 TCs. If the user change the number
from 4 to 8, the TCs' bandwidth is not right.

Fixes: 0807f80d35d0 ("ixgbe: DCB / flow control")
Cc: stable@dpdk.org
Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
7 years agonet/tap: add link status notification
Pascal Mazon [Wed, 22 Mar 2017 08:40:01 +0000 (09:40 +0100)]
net/tap: add link status notification

As tap is a virtual device, there's no physical way a link can be cut.
However, it has an associated kernel netdevice and possibly a remote
netdevice too. These netdevices link status may change outside of the
DPDK scope, through an external command such as:

  ip link set dev tapX down

This commit implements link status notification through netlink.

Signed-off-by: Pascal Mazon <pascal.mazon@6wind.com>
Acked-by: Keith Wiles <keith.wiles@intel.com>
7 years agonet/tap: improve link update
Pascal Mazon [Wed, 22 Mar 2017 08:40:00 +0000 (09:40 +0100)]
net/tap: improve link update

Reflect device link status according to the state of the tap netdevice
and the remote netdevice (if any). If both are UP and RUNNING, then the
device link status is set to ETH_LINK_UP, otherwise ETH_LINK_DOWN.

Signed-off-by: Pascal Mazon <pascal.mazon@6wind.com>
Acked-by: Keith Wiles <keith.wiles@intel.com>
7 years agonet/tap: add remote netdevice traffic capture
Pascal Mazon [Thu, 23 Mar 2017 08:42:11 +0000 (09:42 +0100)]
net/tap: add remote netdevice traffic capture

By default, a tap netdevice is of no use when not fed by a separate
process. The ability to automatically feed it from another netdevice
allows applications to capture any kind of traffic normally destined to
the kernel stack.

This patch implements this ability through a new optional "remote"
parameter.

Packets matching filtering rules created with the flow API are matched
on the remote device and redirected to the tap PMD, where the relevant
action will be performed.

Signed-off-by: Pascal Mazon <pascal.mazon@6wind.com>
Acked-by: Olga Shern <olgas@mellanox.com>
Acked-by: Keith Wiles <keith.wiles@intel.com>
7 years agonet/tap: support segmented mbufs
Pascal Mazon [Thu, 16 Mar 2017 08:59:21 +0000 (09:59 +0100)]
net/tap: support segmented mbufs

Support for segmented packets (scatter/gather) is mandatory for most
purposes, regardless of the MTU size. Tx packets are often the result of
mbuf concatenation, and an mbuf is not necessarily large enough for Rx
packets to fit in a single one.

Signed-off-by: Pascal Mazon <pascal.mazon@6wind.com>
Acked-by: Keith Wiles <keith.wiles@intel.com>
7 years agonet/tap: do not send packets larger than MTU
Pascal Mazon [Wed, 15 Mar 2017 15:09:08 +0000 (16:09 +0100)]
net/tap: do not send packets larger than MTU

Signed-off-by: Pascal Mazon <pascal.mazon@6wind.com>
Acked-by: Keith Wiles <keith.wiles@intel.com>