linux_dsm_epyc7002/drivers/net/ethernet/qlogic/netxen
nikolay@redhat.com 8a7fbfab4b netxen: write IP address to firmware when using bonding
This patch allows LRO aggregation on bonded devices that contain an
NX3031 device. It also adds a for_each_netdev_in_bond_rcu(bond, slave)
macro which executes for each slave that has bond as master.

V3: After testing and discussing this with Rajesh, I decided to keep the
    vlan ip cache and just rename it to ip_cache since it will store bond
    ip addresses too. A new master flag has been added to the ip cache to
    denote that the address has been added because of a master device.
    I've taken care of the enslave/release cases by checking for various
    combinations of events and flags (e.g. netxen has a master, it's a
    bond master and it's not marked as a slave means it is being enslaved
    and is dev_open()ed in bond_enslave).
    I've changed netxen_free_ip_list() to have a "master" parameter which
    causes all IP addresses marked as master to be deleted (used when a
    netxen is being released). I've made the patch use the new upper
    device API as well. The following cases were tested:
    - bond -> netxen
    - vlan -> netxen
    - vlan -> bond -> netxen

V2: Remove local ip caching, retrieve addresses dynamically and
    restore them if necessary.

Note: Tested with NX3031 adapter.

Tested-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: Andy Gospodarek <agospoda@redhat.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-03-15 08:22:20 -04:00
..
Makefile qlogic: Move the QLogic drivers 2011-08-10 20:03:49 -07:00
netxen_nic_ctx.c ethernet: Remove unnecessary alloc/OOM messages, alloc cleanups 2013-02-04 13:22:33 -05:00
netxen_nic_ethtool.c drivers: ethernet: qlogic: netxen_nic_ethtool.c: Fixed a coding style issue 2012-11-06 17:41:42 -05:00
netxen_nic_hdr.h netxen_nic: Fix estimation of recv MSS in case of LRO 2012-05-09 22:53:04 -04:00
netxen_nic_hw.c ethernet: Remove unnecessary alloc/OOM messages, alloc cleanups 2013-02-04 13:22:33 -05:00
netxen_nic_hw.h qlogic: Move the QLogic drivers 2011-08-10 20:03:49 -07:00
netxen_nic_init.c drivers: net: misc: Remove unused OOM variables 2013-02-06 14:58:52 -05:00
netxen_nic_main.c netxen: write IP address to firmware when using bonding 2013-03-15 08:22:20 -04:00
netxen_nic.h netxen: write IP address to firmware when using bonding 2013-03-15 08:22:20 -04:00