Raghu Vatsavayi
30136395a2
liquidio:CN23XX pause frame support
...
Adds support for pause frame and priv flag for cn23xx
device.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-09-02 17:11:31 -07:00
Raghu Vatsavayi
9ded1a512f
liquidio: CN23XX napi support
...
This patch adds NAPI related support for cn23xx device.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-09-02 17:11:31 -07:00
Raghu Vatsavayi
9ff1a9bad8
liquidio: CN23XX health monitoring
...
Adds support for watchdog based health monitoring
of octeon cores on cn23xx device.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-09-02 17:11:31 -07:00
Raghu Vatsavayi
5b823514ae
liquidio: CN23XX octeon3 instruction
...
Adds support for data path related changes based
on octeon3 instruction header(ih3) for cn23xx.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-09-02 17:11:30 -07:00
Raghu Vatsavayi
afdf841fee
liquidio: RX control commands
...
Adds support for RX control commands on cn23xx device.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-09-02 17:11:30 -07:00
Raghu Vatsavayi
7b6b6c9556
liquidio: link and control commands
...
This patch adds work queue support for link status and
control commands.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-09-02 17:11:30 -07:00
Raghu Vatsavayi
c0eab5b358
liquidio: CN23XX firmware download
...
Add firmware download support for cn23xx device.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-08-31 14:12:48 -07:00
Raghu Vatsavayi
5b07aee112
liquidio: MSIX support for CN23XX
...
This patch adds support msix interrupt for cn23xx device.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-08-31 14:12:48 -07:00
Raghu Vatsavayi
1b7c55c453
liquidio: CN23XX queue manipulation
...
This patch adds support for cn23xx queue manipulation.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-08-31 14:12:48 -07:00
Raghu Vatsavayi
3451b97cce
liquidio: CN23XX register setup
...
Adds support for initializing cn23xx device registers
related to mac, input/output and pf global config.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-08-31 14:12:48 -07:00
Raghu Vatsavayi
72c0091293
liquidio: CN23XX device init and sriov config
...
Add support for cn23xx device init and sriov queue config.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-08-31 14:12:48 -07:00
Raghu Vatsavayi
e86b1ab686
liquidio: CN23XX queue definitions
...
Add support for cn23xx specific queue definitions and
features.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-08-31 14:12:47 -07:00
Raghu Vatsavayi
cd8b1eb4e5
liquidio: Common enable irq function
...
Add support of common irq enable functionality for both
iq(instruction queue) and oq(output queue).
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-08-31 14:12:47 -07:00
Raghu Vatsavayi
83101ce338
liquidio: Firmware version management
...
This patch contains changes for firmware version management.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-08-31 14:12:47 -07:00
Raghu Vatsavayi
3258124534
liquidio: Consolidate common functionality
...
Consolidate common functionality of various devices
from different files into lio_core.c/octeon_console.c.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-08-31 14:12:46 -07:00
Nicholas Mc Guire
c41419b091
liquidio: declare liquidio_set_rxcsum_command static
...
liquidio_set_rxcsum_command is a local function only, no need to expose
it outside of lio_main.c so declare it static and make sparse happy.
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-08-23 16:53:55 -07:00
Raghu Vatsavayi
a2c64b67c6
liquidio: Remove redundant code
...
This patch removes redundant file includes and conditions.
Provides some meaningful comments and code alignment.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-07-04 16:15:32 -07:00
Raghu Vatsavayi
4c2743f9ac
liquidio: MTU limits
...
This patch limits the MTU between 68 bytes and 16000 bytes.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-07-04 16:15:31 -07:00
Raghu Vatsavayi
1e0d30fe21
liquidio: free resources during shutdown
...
This patch fixes the issue of proper freeing of queue
memory resources during free device. It also has fix for
correct pcie error reporting.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-07-04 16:15:31 -07:00
Raghu Vatsavayi
3dcef2ca02
liquidio: iq/oq limits
...
This patch removes the dependency of number of iq/oq's on
number of cpus.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-07-04 16:15:31 -07:00
Raghu Vatsavayi
55893a63d1
liquidio: softcommand delay
...
This patch updates the delay constant for softcommands in
accrodance with new requirements.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-07-04 16:15:31 -07:00
Raghu Vatsavayi
a7d5a3dcf7
liquidio: Macro replacements
...
This patch has minor replacements of ACCESS_ONCE macros with
WRITE_ONCE and replacement of BUG_ON with polite version WARN_ON.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-07-04 16:15:30 -07:00
Raghu Vatsavayi
01fb237ac0
liquidio: Vxlan support
...
This patch adds support for Vxaln offloads in liquidio driver.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-07-04 16:15:30 -07:00
Raghu Vatsavayi
4b129ae3b6
liquidio: ddr timeout
...
Adds support for ddr_timeout during device init.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <rvatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-06-25 12:08:29 -04:00
Raghu Vatsavayi
f5a20472e2
liquidio: Support priv flag
...
This patch adds support for private flags for the driver.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <rvatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-06-25 12:08:29 -04:00
Raghu Vatsavayi
1f164717cb
liquidio: New statistics support
...
This patch adds extensive support of statistics for data path,
control path and firmware.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <rvatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-06-25 12:08:29 -04:00
Raghu Vatsavayi
78e6a9b4a4
liquidio: tx rx interrupt moderation
...
This patch has new tx/rx interrupt moderation defaults of
count/timer for better throughput and utilisation.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <rvatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-06-25 12:08:29 -04:00
Raghu Vatsavayi
60b48c5a83
liquidio: chip reset changes
...
This patch resolves the order of chip reset while destroying
the resources by postoponing soft reset in destroy resources
function until all queues are removed properly.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <rvatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-06-25 12:08:28 -04:00
Raghu Vatsavayi
60441888ec
liquidio: New unload state
...
This patch adds new state so that the ctrl packets are not sent
to firmware during unload time and only rx packets are allowed.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <rvatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-06-25 12:08:28 -04:00
Raghu Vatsavayi
d3d7e6c65f
liquidio: Firmware image download
...
This patch has firmware image related changes for: firmware
release upon failure, support latest firmware version and
firmware download in 4MB chunks.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <rvatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-06-25 12:08:28 -04:00
Raghu Vatsavayi
9a96bde4e1
liquidio: Napi rx/tx traffic
...
This Patch adds tx buffer handling to Napi along with RX
traffic. Also separate spinlocks are introduced for handling
iq posting and buffer reclaim so that tx path and tx interrupt
do not compete against each other.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <rvatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-06-25 12:08:28 -04:00
Raghu Vatsavayi
63245f2571
liquidio: Vlan filtering
...
This patch adds supports for Vlan filtering for liquidio driver.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <rvatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-06-25 12:08:28 -04:00
Raghu Vatsavayi
0da0b77cde
liquidio: Vlan offloads changes
...
This patch adds support for vlan offloads for the driver and
receive header structures are also modified appropriately. Also
requestID will not be used in reveive header any more.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <rvatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-06-25 12:08:28 -04:00
Raghu Vatsavayi
63da84049b
liquidio: soft command buffer limits
...
This patch increases the limits of soft command buffer size and
num command buffers. This patch also has changes for queue macros
and limit related changes for new chips.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <rvatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-06-25 12:08:28 -04:00
Raghu Vatsavayi
6a885b60da
liquidio: Introduce new octeon2/3 header
...
Added support for new instruction header for octeon2/octeon3(ih) and
corresponding changes.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-06-15 21:44:32 -07:00
Raghu Vatsavayi
0cece6c583
liquidio: Replace ifidx for FW commands
...
This patch decoupled the firmware side ifidx and host side interface
number. It also has some minor name change for linkinfo sturct field.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-06-15 21:44:32 -07:00
Raghu Vatsavayi
7275ebfc50
liquidio: New driver FW command structure
...
This patch is for new driver/firmware control command structure
(octnic_packet_params and octnic_cmd_setup ) and resultant code changes.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-06-15 21:44:32 -07:00
Raghu Vatsavayi
a5b3788881
liquidio: Consider PTP for packet size calculations
...
This patch is to refactor packet size calculations to support PTP enabled
for 66xx and 68xx cards and also other cards that do not support PTP.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-06-15 21:44:32 -07:00
Raghu Vatsavayi
cabeb13be9
liquidio: RX desc alloc changes
...
This patch is to add page based buffers for receive side descriptors of
the driver and separate free routines for rx and tx buffers.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-06-15 21:44:32 -07:00
Raghu Vatsavayi
fcd2b5e36c
liquidio:Scatter gather list per IQ
...
This patch is to allocate and manage scatter gather lists per
input queue(iq's) and remove queue's interdependence.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-06-15 21:44:31 -07:00
Raghu Vatsavayi
26236fa9a1
liquidio: Host queue mapping changes
...
This patch is to allocate the input queues based on Numa node in tx path
and queue mapping changes based on the mapping info provided by firmware.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-06-15 21:44:31 -07:00
Raghu Vatsavayi
ddc173a688
liquidio: Avoid double free during soft command
...
This patch is to resolve the double free issue by checking proper return
values from soft command.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-06-15 21:44:31 -07:00
Bhaktipriya Shridhar
292b9dab40
net: cavium: liquidio: Remove deprecated create_workqueue
...
alloc_workqueue replaces deprecated create_workqueue().
A dedicated workqueue has been used since the workitem viz
(&lio->txq_status_wq.wk.work which maps to octnet_poll_check_txq_status)
is involved in a brief poll routine for checking transmit queue status
and is an intergral part of normal device operation.
WQ_MEM_RECLAIM has been set to guarantee forward progress under memory
pressure, which is a requirement here.
Since there are only a fixed number of work items, explicit concurrency
limit is unnecessary.
flush_workqueue is unnecessary since destroy_workqueue() itself calls
drain_workqueue() which flushes repeatedly till the workqueue
becomes empty.
Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-06-09 23:48:55 -07:00
Florian Westphal
860e9538a9
treewide: replace dev->trans_start update with helper
...
Replace all trans_start updates with netif_trans_update helper.
change was done via spatch:
struct net_device *d;
@@
- d->trans_start = jiffies
+ netif_trans_update(d)
Compile tested only.
Cc: user-mode-linux-devel@lists.sourceforge.net
Cc: linux-xtensa@linux-xtensa.org
Cc: linux1394-devel@lists.sourceforge.net
Cc: linux-rdma@vger.kernel.org
Cc: netdev@vger.kernel.org
Cc: MPT-FusionLinux.pdl@broadcom.com
Cc: linux-scsi@vger.kernel.org
Cc: linux-can@vger.kernel.org
Cc: linux-parisc@vger.kernel.org
Cc: linux-omap@vger.kernel.org
Cc: linux-hams@vger.kernel.org
Cc: linux-usb@vger.kernel.org
Cc: linux-wireless@vger.kernel.org
Cc: linux-s390@vger.kernel.org
Cc: devel@driverdev.osuosl.org
Cc: b.a.t.m.a.n@lists.open-mesh.org
Cc: linux-bluetooth@vger.kernel.org
Signed-off-by: Florian Westphal <fw@strlen.de >
Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com >
Acked-by: Mugunthan V N <mugunthanvnm@ti.com >
Acked-by: Antonio Quartulli <a@unstable.cc >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-05-04 14:16:49 -04:00
Colin Ian King
19a6d156a7
net: cavium: liquidio: fix check for in progress flag
...
smatch detected a suspicious looking bitop condition:
drivers/net/ethernet/cavium/liquidio/lio_main.c:2529
handle_timestamp() warn: suspicious bitop condition
(skb_shinfo(skb)->tx_flags | SKBTX_IN_PROGRESS is always non-zero,
so the logic is definitely not correct. Use & to mask the correct
bit.
Signed-off-by: Colin Ian King <colin.king@canonical.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-02-13 06:05:41 -05:00
Amitoj Kaur Chawla
08a965ec93
net: cavium: liquidio: Return correct error code
...
The return value of vmalloc on failure of allocation of memory should
be -ENOMEM and not -1.
Found using Coccinelle. A simplified version of the semantic patch
used is:
//<smpl>
@@
expression *e;
identifier l1;
position p,q;
@@
e@q = vmalloc(...);
if@p (e == NULL) {
...
goto l1;
}
l1:
...
return -1
+ -ENOMEM
;
//</smpl
The single call site of the containing function checks whether the
returned value is -1, so this check is changed as well. The single call
site of this call site, however, only checks whether the value is not 0,
so no further change was required.
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-02-13 05:57:11 -05:00
Kefeng Wang
286af315d3
net: cavium: liquidio: use helpers ns_to_timespec64()
...
Convert the driver to use ns_to_timespec64() to keep consistency
with timespec64_to_ns() instead of open coding the same logic.
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-01-29 15:14:21 -05:00
Julia Lawall
166e23623e
net: cavium: liquidio: constify pci_error_handlers structures
...
This pci_error_handlers structure is never modified, like all the other
pci_error_handlers structures, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr >
Signed-off-by: David S. Miller <davem@davemloft.net >
2015-11-16 15:07:28 -05:00
Rasmus Villemoes
ce8e5c7035
net: cavium: liquidio: use kzalloc in setup_glist()
...
We save a little .text and get rid of the sizeof(...) style
inconsistency.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk >
Signed-off-by: David S. Miller <davem@davemloft.net >
2015-09-09 17:06:00 -07:00
Raghu Vatsavayi
5b173cf927
Fix Cavium Liquidio build related errors and warnings
...
1) Fixed following sparse warnings:
lio_main.c:213:6: warning: symbol 'octeon_droq_bh' was not
declared. Should it be static?
lio_main.c:233:5: warning: symbol 'lio_wait_for_oq_pkts' was
not declared. Should it be static?
lio_main.c:3083:5: warning: symbol 'lio_nic_info' was not
declared. Should it be static?
lio_main.c:2618:16: warning: cast from restricted __be16
octeon_device.c:466:6: warning: symbol 'oct_set_config_info'
was not declared. Should it be static?
octeon_device.c:573:25: warning: cast to restricted __be32
octeon_device.c:582:29: warning: cast to restricted __be32
octeon_device.c:584:39: warning: cast to restricted __be32
octeon_device.c:594:13: warning: cast to restricted __be32
octeon_device.c:596:25: warning: cast to restricted __be32
octeon_device.c:613:25: warning: cast to restricted __be32
octeon_device.c:614:29: warning: cast to restricted __be64
octeon_device.c:615:29: warning: cast to restricted __be32
octeon_device.c:619:37: warning: cast to restricted __be32
octeon_device.c:623:33: warning: cast to restricted __be32
cn66xx_device.c:540:6: warning: symbol
'lio_cn6xxx_get_pcie_qlmport' was not declared. Should it be s
octeon_mem_ops.c:181:16: warning: cast to restricted __be64
octeon_mem_ops.c:190:16: warning: cast to restricted __be32
octeon_mem_ops.c:196:17: warning: incorrect type in initializer
2) Fix build errors corresponding to vmalloc on linux-next 4.1.
3) Liquidio now supports 64 bit only, modified Kconfig accordingly.
4) Fix some code alignment issues based on kernel build warnings.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com >
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com >
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com >
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2015-06-12 19:16:04 -07:00