09 Dec, 2011
22 commits
-
This allows to keep track of vids needed to be in rx vlan filters of
devices even if they are used in bond/team etc.vlan_info as well as vlan_group previously was, is allocated when first
vid is added and dealocated whan last vid is deleted.vlan_group definition is moved to private header.
Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
This patch adds wrapper for ndo_vlan_rx_add_vid/ndo_vlan_rx_kill_vid
functions. Check for NETIF_F_HW_VLAN_FILTER feature is done in this
wrapper.Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
Let caller know the result of adding/removing vlan id to/from vlan
filter.In some drivers I make those functions to just return 0. But in those
where there is able to see if hw setup went correctly, return value is
set appropriately.Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
As this structure is priv, name it approprietely. Also for pointer to it
use name "vlan".Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
Add missing netpoll support.
Signed-off-by: Ivan Vecera
Signed-off-by: David S. Miller -
Signed-off-by: Lothar Waßmann
Tested-by: Shawn Guo
Acked-by: Shawn Guo
Signed-off-by: David S. Miller -
The .remove code is broken in several ways.
- mdiobus_unregister() is called twice for the same object in case of dual FEC
- phy_disconnect() is being called when the PHY is already disconnected
- the requested IRQ(s) are not freed
- fec_stop() is being called with the inteface already stoppedAll of those lead to kernel crashes if the remove function is actually used.
Signed-off-by: Lothar Waßmann
Tested-by: Shawn Guo
Acked-by: Shawn Guo
Signed-off-by: David S. Miller -
Additionally to setting the ETHER_EN bit in FEC_ECNTRL the MII/RMII
setting in FEC_R_CNTRL needs to be preserved to keep the MII interface
functional.Signed-off-by: Lothar Waßmann
Tested-by: Shawn Guo
Acked-by: Shawn Guo
Signed-off-by: David S. Miller -
When the MAC address is supplied via platform_data it should be OK as
it is and should not be modified in case of a dual FEC setup.
Also copying the MAC from platform_data to the single 'macaddr'
variable will overwrite the MAC for the first interface in case of a
dual FEC setup.Signed-off-by: Lothar Waßmann
Acked-by: Shawn Guo
Signed-off-by: David S. Miller -
prevent calling request_irq() with a known invalid IRQ number and
preserve the return value of the platform_get_irq() functionSigned-off-by: Lothar Waßmann
Acked-by: Shawn Guo
Signed-off-by: David S. Miller -
Upon detection of a FDX/HDX change the interface is restarted twice.
Signed-off-by: Lothar Waßmann
Acked-by: Shawn Guo
Signed-off-by: David S. Miller -
The con_id is actually not needed for clk_get().
Signed-off-by: Lothar Waßmann
Acked-by: Shawn Guo
Signed-off-by: David S. Miller -
- remove some bogus whitespace
- remove line wraps from printk messagesSigned-off-by: Lothar Waßmann
Acked-by: Shawn Guo
Signed-off-by: David S. Miller -
This patch updates the tg3 version to 3.122.
Signed-off-by: Matt Carlson
Reviewed-by: Michael Chan
Reviewed-by: Ben Hutchings
Signed-off-by: David S. Miller -
This patch changes the driver to return the flow control configuration
rather than the flow control status through the ETHTOOL_GPAUSEPARAM
ioctl.Signed-off-by: Matt Carlson
Reviewed-by: Michael Chan
Reviewed-by: Ben Hutchings
Signed-off-by: David S. Miller -
This patch adds code to track the autonegotiation advertisements of the
link partner and report them through ethtool.Signed-off-by: Matt Carlson
Signed-off-by: Ben Hutchings
Reviewed-by: Michael Chan
Signed-off-by: David S. Miller -
This patch integrates tg3_adv_1000T_flowctrl_ok() into
tg3_copper_is_advertising_all() and renames the function
tg3_phy_copper_an_config_ok().Signed-off-by: Matt Carlson
Reviewed-by: Michael Chan
Reviewed-by: Ben Hutchings
Signed-off-by: David S. Miller -
Tg3 has a place to store stats, but doesn't really use it. This patch
modifies the driver so that stats are saved across chip resets and gets
cleared across close / open calls.Signed-off-by: Matt Carlson
Reviewed-by: Michael Chan
Reviewed-by: Ben Hutchings
Signed-off-by: David S. Miller -
This patch removes the ethtool stats member from the tg3 device
structure.Signed-off-by: Matt Carlson
Signed-off-by: Michael Chan
Reviewed-by: Ben Hutchings
Signed-off-by: David S. Miller -
If user has configured a MAC address that is not one of the existing
ports of the bridge, then we need to add a special entry in the forwarding
table. This forwarding table entry has no outgoing port so it has to be
treated a little differently. The special entry is reported by the netlink
interface with ifindex of bridge, but ignored by the old interface since there
is no usable way to put it in the ABI.Reported-by: Koki Sanagi
Signed-off-by: Stephen Hemminger
Signed-off-by: David S. Miller -
Pass bridge to fdb_notify so it can determine correct namespace based
on namespace of bridge rather than namespace of destination port.
Also makes next patch easier.Signed-off-by: Stephen Hemminger
Signed-off-by: David S. Miller -
Move fdb_notify outside of fdb_create. This fixes the problem
that notification of local entries are not flagged correctly.Signed-off-by: Stephen Hemminger
Signed-off-by: David S. Miller
08 Dec, 2011
1 commit
-
Signed-off-by: Barak Witkowski
Signed-off-by: Eilon Greenstein
Signed-off-by: David S. Miller
07 Dec, 2011
17 commits
-
BUG_ON is too strict in a number of circumstances,
use WARN_ON instead. Protocol errors should not halt the system.Signed-off-by: Sjur Brændeland
Signed-off-by: David S. Miller -
Various bugfixes for caif_shmcore.c:
- fix deadlocks due to improper usage of spin-lock
- add missing spin-lock init
- don't call dev_kfree_skb() with irqs disabled,
use dev_kfree_skb_irq() instead.
- fix potential skb null pointer de-reference.Squashed original patches from:
Rabin Vincent
Durga Prasada Rao BATHINA
Arun Murthy
Bibek BasuSigned-off-by: Sjur Brændeland
Signed-off-by: David S. Miller -
Fix bad assert on fragment size triggering false positive.
Signed-off-by: Sjur Brændeland
Signed-off-by: David S. Miller -
Raising wake before flushing FIFO and lowering it after caused a
spike on AC wake that were sometimes detected and acted upon by the
modem. Fixed this by remove wake line modification when flushing FIFO.Signed-off-by: Sjur Brændeland
Signed-off-by: David S. Miller -
And return error pointers.
Signed-off-by: David S. Miller
-
Signed-off-by: David S. Miller
-
Don't provide FCoE and iSCSI statistics to management firmware if
CONFIG_CNIC is not set. Some needed structure fields are not defined
without CONFIG_CNIC.Reported-by: Eric Dumazet
Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net:
net: Silence seq_scale() unused warning
ipv4:correct description for tcp_max_syn_backlog
pasemi_mac: Fix building as module
netback: Fix alert message.
r8169: fix Rx index race between FIFO overflow recovery and NAPI handler.
r8169: Rx FIFO overflow fixes.
ipv4: Fix peer validation on cached lookup.
ipv4: make sure RTO_ONLINK is saved in routing cache
iwlwifi: change the default behavior of watchdog timer
iwlwifi: do not re-configure HT40 after associated
iwlagn: fix HW crypto for TX-only keys
Revert "mac80211: clear sta.drv_priv on reconfiguration"
mac80211: fill rate filter for internal scan requests
cfg80211: amend regulatory NULL dereference fix
cfg80211: fix race on init and driver registration -
* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
ftrace: Fix hash record accounting bug
perf: Fix parsing of __print_flags() in TP_printk()
jump_label: jump_label_inc may return before the code is patched
ftrace: Remove force undef config value left for testing
tracing: Restore system filter behavior
tracing: fix event_subsystem ref counting -
On a CONFIG_NET=y build
net/core/secure_seq.c:22: warning: 'seq_scale' defined but not
usedSigned-off-by: Stephen Boyd
Signed-off-by: David S. Miller -
This patch moves the sock_ code from inet_diag.c to generic sock_diag.c
file and provides necessary request_module-s calls and a pointer on
inet_diag_compat dumping routine.Signed-off-by: Pavel Emelyanov
Signed-off-by: David S. Miller -
Now all the code works with sock_diag_req-compatible structs, so it's
possible to stop using the inet_diag_type2proto in inet_csk_diag_fill.
Pass the inet_diag_req into it and use the sdiag_protocol field. At the
same time remove the explicit ext argument, since it's also on the req.However, this conversion is still required in _compat code, so just move
this routine, not remove.Signed-off-by: Pavel Emelyanov
Signed-off-by: David S. Miller -
The new API will specify family to work with. Teach the existing
socket walking code to bypass not interesting ones.To preserve compatibility with existing behavior the _compat code
sets interesting family to AF_UNSPEC to dump them all.Signed-off-by: Pavel Emelyanov
Signed-off-by: David S. Miller -
Make inet_diag_dumo work with given header instead of calculating
one from the nl message.The SOCK_DIAG_BY_FAMILY just passes skb's one through, the compat code
converts the old header to new one.Also fix the bytecode calculation to find one at proper offset.
Signed-off-by: Pavel Emelyanov
Signed-off-by: David S. Miller -
Make inet_diag_get_exact work with given header instead of calculating
one from the nl message.The SOCK_DIAG_BY_FAMILY just passes skb's one through, the compat code
converts the old header to new one.Signed-off-by: Pavel Emelyanov
Signed-off-by: David S. Miller -
This one coinsides with the sock_diag_req in the beginning and
contains only used fields from its previous analogue.The existing code is patched to use the _compat version of it
for now.Signed-off-by: Pavel Emelyanov
Signed-off-by: David S. Miller