06 Jul, 2011
12 commits
-
Convert a printk with a static to pr__once
Add and use DRV_DESCRIPTION to reduce string duplication.
Remove now unused version.Signed-off-by: Joe Perches
Signed-off-by: David S. Miller -
Just add GSO to vlan_features initialization, and update comments.
When we set offload features, vlan_dev_fix_features() will do more check.
In vlan_dev_fix_features(), final features is decided by
features of real device and vlan_features of real device.Signed-off-by: Shan Wei
Signed-off-by: David S. Miller -
The skb->rxhash cannot be properly computed if the
packet is a fragment. To alleviate this, allow the
AF_PACKET client to ask for defragmentation to be
done at demux time.Signed-off-by: David S. Miller
-
Elide the ICMP on frag queue timeouts unconditionally for
this user.Signed-off-by: David S. Miller
-
Fanouts allow packet capturing to be demuxed to a set of AF_PACKET
sockets. Two fanout policies are implemented:1) Hashing based upon skb->rxhash
2) Pure round-robin
An AF_PACKET socket must be fully bound before it tries to add itself
to a fanout. All AF_PACKET sockets trying to join the same fanout
must all have the same bind settings.Fanouts are identified (within a network namespace) by a 16-bit ID.
The first socket to try to add itself to a fanout with a particular
ID, creates that fanout. When the last socket leaves the fanout
(which happens only when the socket is closed), that fanout is
destroyed.Signed-off-by: David S. Miller
-
Signed-off-by: David S. Miller
-
If gso/gro feature of underlying device is turned off,
then new created vlan device never can turn gso/gro on.Although underlying device don't support TSO, we still
should use software segments for vlan device.Signed-off-by: Shan Wei
Signed-off-by: David S. Miller -
If the rx ring is completely empty, then the device may never fire an rx
interrupt. Unfortunately, the rx interrupt is what triggers populating the
rx ring with fresh buffers, so this will cause networking to lock up.This patch replenishes the skb in recv descriptor as soon as it is
peeled off while processing rx completions. If the skb/buffer
allocation fails, existing one is recycled and the packet in hand is
dropped. This way none of the RX desc is ever left empty, thus avoiding
starvationSigned-off-by: Scott J. Goldman
Signed-off-by: Shreyas N Bhatewara
Signed-off-by: David S. Miller -
As is_multicast_ether_addr returns true on broadcast packets as
well, we need to explicitly exclude broadcast packets so that
they're always flooded. This wasn't an issue before as broadcast
packets were considered to be an unregistered multicast group,
which were always flooded. However, as we now only flood such
packets to router ports, this is no longer acceptable.Reported-by: Michael Guntsche
Signed-off-by: Herbert Xu
Signed-off-by: David S. Miller
05 Jul, 2011
28 commits
-
The version number of modules build outside of the tree can get revision
numbers added. This is useful to give hints about the revision of a
distribution package and the used patchset. The prepended source number or
branch name doesn't add any additional information which would help to identify
problems and can therefore be omitted.Signed-off-by: Sven Eckelmann
Signed-off-by: Marek Lindner -
The packet aggregation needs to ensure that only compatible packets
are aggregated. Some of the checks are based on the interface number
while assuming that the first interface also is the primary interface
which is not always the case.
This patch addresses the issue by using the primary_if pointer.Reported-by: Antonio Quartulli
Signed-off-by: Marek Lindner -
The primary interface OGM has to be broadcasted on all hard-interfaces
even if the primary interface is not the first interface (if_num = 0).
Therefore the code has to compare the originating interface with the
primary interface instead of checking the if_num.Reported-by: Linus Luessing
Signed-off-by: Marek Lindner -
now tt_local_event() takes a flags argument instead of a sequence of
boolean values which would grow up with the time.Signed-off-by: Antonio Quartulli
Signed-off-by: Marek Lindner -
In order to make possible to use the broadcast list for delayed sendings
the "delay" parameter is now provided instead of using 1 as hardcoded
value.Signed-off-by: Antonio Quartulli
Signed-off-by: Marek Lindner -
The tt_local_entry structure now has a 'flags' field. This helps to
unify the flags format to all the client related structures (tt_global_entry
and tt_change). The 'never_purge' field is now encoded in the 'flags' one.
To optimise the usage of this field, its length has been increased to 16bit
in order to use the eight leading bits (from 0 to 7) to store flags that
have to be sent on the wire, while the eight ending ones are used for local
computation only.Moreover 'enum tt_change_flags' is now called 'enum tt_client_flags' and the
defined values apply to the tt_local_entry, tt_global_entry and the tt_change
'flags' field.Signed-off-by: Antonio Quartulli
Signed-off-by: Marek Lindner -
Clear warning message "MDC/MDIO access timeout" during first driver load by setting MDIO clock.
This warning has no significant meaning, since it occurs prior to the first PHY initialization.Signed-off-by: Yaniv Rosner
Signed-off-by: Eilon Greenstein
Signed-off-by: David S. Miller -
Add autogrEEEn support on BCM84833 and 54618se, which allows to reduce power consumption.
Signed-off-by: Yaniv Rosner
Signed-off-by: Eilon Greenstein
Signed-off-by: David S. Miller -
Signed-off-by: Yaniv Rosner
Signed-off-by: Eilon Greenstein
Signed-off-by: David S. Miller -
When driver is unloaded, disable PMD in addition to TX laser, provided that the management firmware will be able to enable it back.
Signed-off-by: Yaniv Rosner
Signed-off-by: Eilon Greenstein
Signed-off-by: David S. Miller -
Add hardware PHY reset action for BCM578xx when fan failure occur.
The new bnx2x_warpcore_hw_reset warps bnx2x_warpcore_power_module to fit the .hw_reset function template of the phy structure.Signed-off-by: Yaniv Rosner
Signed-off-by: Eilon Greenstein
Signed-off-by: David S. Miller -
Add CL37 BAM support according to configuration.
Signed-off-by: Yaniv Rosner
Signed-off-by: Eilon Greenstein
Signed-off-by: David S. Miller -
Change 1G copper PHY BCM54616S to BCM54618SE since we only have HW with latter one of the two.
Signed-off-by: Yaniv Rosner
Signed-off-by: Eilon Greenstein
Signed-off-by: David S. Miller -
Set the source MAC address for PFC packets and update its status during PMF migration.
Signed-off-by: Yaniv Rosner
Signed-off-by: Eilon Greenstein
Signed-off-by: David S. Miller -
The MAC address was set using the signed char sockaddr->sa_addr
field and thus the address could be corrupted through sign extension.Signed-off-by: Kristoffer Glembo
Signed-off-by: David S. Miller -
Hi,
Reinhard Max also pointed out that the error should EAFNOSUPPORT according
to POSIX.The Linux manpages have it as EINVAL, some other OSes (Minix, HPUX, perhaps BSD) use
EAFNOSUPPORT. Windows uses WSAEFAULT according to MSDN.Other protocols error values in their af bind() methods in current mainline git as far
as a brief look shows:
EAFNOSUPPORT: atm, appletalk, l2tp, llc, phonet, rxrpc
EINVAL: ax25, bluetooth, decnet, econet, ieee802154, iucv, netlink, netrom, packet, rds, rose, unix, x25,
No check?: can/raw, ipv6/raw, irda, l2tp/l2tp_ipCiao, Marcus
Signed-off-by: Marcus Meissner
Cc: Reinhard Max
Signed-off-by: David S. Miller -
Signed-off-by: Tobias Klauser
Signed-off-by: David S. Miller -
Signed-off-by: Tobias Klauser
Signed-off-by: David S. Miller -
Signed-off-by: Tobias Klauser
Signed-off-by: David S. Miller -
Signed-off-by: Tobias Klauser
Signed-off-by: David S. Miller -
Signed-off-by: Tobias Klauser
Signed-off-by: David S. Miller -
Signed-off-by: Tobias Klauser
Signed-off-by: David S. Miller -
Signed-off-by: Tobias Klauser
Signed-off-by: David S. Miller -
Signed-off-by: Tobias Klauser
Signed-off-by: David S. Miller -
Signed-off-by: Tobias Klauser
Signed-off-by: David S. Miller -
tcp_rmem and tcp_wmem use 1 page as default value for the minimum
amount of memory to be used, same as udp_wmem_min and udp_rmem_min.
Pages are different size on different architectures - use the right
units when describing the defaults.Reviewed-by: Shan Wei
Acked-by: Neil Horman
Signed-off-by: Max Matveev
Signed-off-by: David S. Miller -
sctp does not use second and third ("default" and "max") values
of sctp_rmem tunable. The format is the same as tcp_rmem
but the meaning is different so make the documentation explicit to
avoid confusion.sctp_wmem is not used at all.
Acked-by: Neil Horman
Signed-off-by: Max Matveev
Reviewed-by: Shan Wei
Signed-off-by: David S. Miller -
b44_tx() is run from softirq handler, it can use dev_kfree_skb() instead
of dev_kfree_skb_irq()Signed-off-by: Eric Dumazet
Signed-off-by: David S. Miller