22 Oct, 2012
20 commits
-
ns_to_ktime() seems better than ktime_set() + ktime_add_ns()
Signed-off-by: Eric Dumazet
Signed-off-by: David S. Miller -
Signed-off-by: Padmanabh Ratnakar
Signed-off-by: David S. Miller -
Signed-off-by: Padmanabh Ratnakar
Signed-off-by: David S. Miller -
FW flash layout on Skyhawk-R is different from BE3-R.
Hence the code needs to be fixed to flash FW on Skyhawk-R.
Also cleaning up code in BE3-R flashing function.Signed-off-by: Vasundhara Volam
Signed-off-by: Padmanabh Ratnakar
Signed-off-by: David S. Miller -
be_shutdown is enabling wake-on-lan by calling be_setup_wol.
Emulex adapter do not support wake-on-lan in S5 state.Signed-off-by: Vasundhara Volam
Signed-off-by: Padmanabh Ratnakar
Signed-off-by: David S. Miller -
PF driver should enable VF so that VF goes to ready state in
new Lancer FW.Signed-off-by: Padmanabh Ratnakar
Signed-off-by: David S. Miller -
During PCI EEH, driver waits for all functions in the card.
Wait is needed only once per card. Fix is to wait only for the
first PCI function.Signed-off-by: Padmanabh Ratnakar
Signed-off-by: David S. Miller -
During recovery from a FW error, destroy queue operation may fail.
Queue should be marked as destroyed so that recovery code can recreate
the queue. Also fix queue created state not getting checked at one instance.Signed-off-by: Padmanabh Ratnakar
Signed-off-by: David S. Miller -
Return default values for fields for which VFs dont have privilege to get the
required information from FW.Signed-off-by: Padmanabh Ratnakar
Signed-off-by: David S. Miller -
VF does not have privileges to execute many commands. When VFs try
to execute those commands there are unnecessary error messages.
Fix this by executing only those commands for which VF has privilege.Signed-off-by: Padmanabh Ratnakar
Signed-off-by: David S. Miller -
Allow adding VLANs for Lancer VF.
VLAN ID 0 should not be added to list of VLANs sent to FW.Signed-off-by: Padmanabh Ratnakar
Signed-off-by: David S. Miller -
After FW error, driver should wait for NO_RESOURCE error to disappear before
proceeding with recovery.Signed-off-by: Padmanabh Ratnakar
Signed-off-by: David S. Miller -
For changing MAC of VF from PF, delete MAC operation needs to be done before
assigning new MAC. Also in ndo_set_mac_address operation avoid delete MAC if
it has been already deleted by PF.Signed-off-by: Padmanabh Ratnakar
Signed-off-by: David S. Miller -
Use Lancer specific command to set QoS for VF.
Signed-off-by: Padmanabh Ratnakar
Signed-off-by: David S. Miller -
Driver assumes FW resource counts and capabilities while creating queues and
using functionality like RSS. This causes driver load to fail in FW configs
where resources and capabilities are reduced. Fix this by querying FW
configuration during probe and using resources and capabilities accordingly.Signed-off-by: Padmanabh Ratnakar
Signed-off-by: David S. Miller -
This patch removes double assignment of err to -EINVAL in dev_change_net_namespace().
Signed-off-by: Rami Rosen
Acked-by: Serge E. Hallyn
Signed-off-by: David S. Miller -
The SO_BINDTODEVICE option is the only SOL_SOCKET one that can be set, but
cannot be get via sockopt API. The only way we can find the device id a
socket is bound to is via sock-diag interface. But the diag works only on
hashed sockets, while the opt in question can be set for yet unhashed one.That said, in order to know what device a socket is bound to (we do want
to know this in checkpoint-restore project) I propose to make this option
getsockopt-able and report the respective device index.Another solution to the problem might be to teach the sock-diag reporting
info on unhashed sockets. Should I go this way instead?Signed-off-by: Pavel Emelyanov
Acked-by: Eric Dumazet
Signed-off-by: David S. Miller -
The struct sock *other one seem to be unused. Grep and make do not object.
Signed-off-by: Pavel Emelyanov
Signed-off-by: David S. Miller -
Use the standard test for a non-zero ipv6 address.
Signed-off-by: Joe Perches
Signed-off-by: David S. Miller -
Checked with Windows networking team, there is only one RNDIS message
in each netvsc packet.Signed-off-by: Haiyang Zhang
Reviewed-by: K. Y. Srinivasan
Signed-off-by: David S. Miller
20 Oct, 2012
16 commits
-
Jeff Kirsher says:
====================
This series contains updates to ixgbe and igb.Alexander Duyck (13):
ixgbe: Initialize q_vector cpu and affinity masks correctly
ixgbe: Enable jumbo frames support w/ SR-IOV
ixgbe: Move message handling routines into their own functions
ixgbe: Add mailbox API version negotiation support to ixgbe PF
igb: Split Rx timestamping into two separate functions
igb: Do not use header split, instead receive all frames into a
single buffer
igb: Combine post-processing of skb into a single function
igb: Map entire page and sync half instead of mapping and unmapping
half pages
igb: Move rx_buffer related code in Rx cleanup path into separate
function
igb: Lock buffer size at 2K even on systems with larger pages
igb: Combine q_vector and ring allocation into a single function
igb: Move the calls to set the Tx and Rx queues into igb_open
igb: Split igb_update_dca into separate Tx and Rx functionsTushar Dave (1):
igb: Correcting and improving small packet check and padding
====================Signed-off-by: David S. Miller
-
Joachim Eastwood says;
====================
This patch series prepares the old at91_ether driver for code sharing
with the macb driver. The hardware is similar except for DMA TX/RX, so
its not quite clear if it is practical to support both in one
driver. But stuff like MDIO and statistics should be possible to
share.Patch 1 adds some register defines and bits that is only found on
RM9200.Patch 2-4 uses the register defines and access functions from the macb
header. These can be squashed if it cause too much churn.Patch 5 merges the private at91_ether struct with the private macb
struct. This makes it easier to later share code with the macb. The
private macb struct becomes quite large, but most at91_ether specific
members are removed in later patches.Patch 8 make macb compile when we select at91_ether. Is this approach
okey?Patch 9 makes use of MDIO code from macb. This rips out the private
phy handling code in at91_ether. One thing that is lost is the
interrupt support for phy. But this should easy to add to macb which
will then benefit both drivers.Patch 10 makes use of the macb_set_rx_mode from macb.
Patch 11-12 makes at91_ether share the rx dma struct members from
macb. Patch also moves the rx buffer allocation into netdev open and
dealloc into netdev close.Last patch remove the now unused rm9200 emac header from include/mach.
====================Signed-off-by: David S. Miller
-
This file is unused after at91_ether was converted to use macb.h
Signed-off-by: Joachim Eastwood
-
Signed-off-by: Joachim Eastwood
-
This patch does two things:
* Use macb struct members and remove at91_ether ones
* Alloc DMA buffers on netdev start and dealloc on stopSigned-off-by: Joachim Eastwood
-
Signed-off-by: Joachim Eastwood
-
Signed-off-by: Joachim Eastwood
-
This rips out the at91_ether phy handling and ethtool stuff
and replace it with equivalent stuff from macb.The only thing lost is the phy irq support from at91_ether,
but this can be added to macb and then benefit all users.Signed-off-by: Joachim Eastwood
-
Comile macb as well as at91_ether to access exported functions.
Signed-off-by: Joachim Eastwood
-
Export some symbols to start sharing code between
macb and at91_ether drivers.Signed-off-by: Joachim Eastwood
-
Remove old at91_priv member and use pclk member from macb.
Signed-off-by: Joachim Eastwood
-
This will make it easier to share code between the drivers and
eventually merge them into one driver.Signed-off-by: Joachim Eastwood
-
Signed-off-by: Joachim Eastwood
-
Use macb read/write funtions and remove the old at91_ether ones.
Signed-off-by: Joachim Eastwood
-
Use register and bits definitions from the macb header. This makes it
possible to have one header file for this hardware.Process was scripted and the resulting object file has the same checksum.
Signed-off-by: Joachim Eastwood
-
Signed-off-by: Joachim Eastwood
19 Oct, 2012
4 commits
-
This change makes it so that igb_update_dca is broken into two halves, one
for Rx and one for Tx. The advantage to this is primarily readability.In addition I am enabling relaxed ordering for reads from hardware since
this is supported on all of the igb parts.Signed-off-by: Alexander Duyck
Tested-by: Aaron Brown
Signed-off-by: Jeff Kirsher -
This change helps to address locking issues seen with
netif_set_real_num_tx_queues and netif_set_real_num_rx_queues when used in
the igb_set_interrupt_capability function. To resolve these locking issues
I have moved the two function calls into __igb_open so that they can be
called while the RTNL lock is held.An added advantage to this is that the number of queues is not updated
until the last possible moment so if there are any issues in allocating
MSI-X interrupts or resources for the rings we have time to change the
values prior to updating the netdev.Signed-off-by: Alexander Duyck
Tested-by: Aaron Brown
Signed-off-by: Jeff Kirsher -
This change combines the the allocation of q_vectors and rings into a single
function. The advantage of this is that we are guaranteed we will avoid
overlap in the L1 cache sets.Signed-off-by: Alexander Duyck
Tested-by: Aaron Brown
Signed-off-by: Jeff Kirsher -
This change locks us in at 2K buffers even on a system that supports larger
frames. The reason for this change is to make better use of pages and to
reduce the overall truesize of frames generated by igb.Signed-off-by: Alexander Duyck
Tested-by: Aaron Brown
Signed-off-by: Jeff Kirsher