06 Jul, 2008
12 commits
-
Two special cases here - one is rxrpc - I put init_net there
explicitly, since we haven't touched this part yet. The second
place is in __udp4_lib_rcv - we already have a struct net there,
but I have to move its initialization above to make it ready
at the "drop" label.Signed-off-by: Pavel Emelyanov
Acked-by: Denis V. Lunev
Signed-off-by: David S. Miller -
Nothing special - all the places already have a struct sock
at hands, so use the sock_net() net.Signed-off-by: Pavel Emelyanov
Acked-by: Denis V. Lunev
Signed-off-by: David S. Miller -
dst cache is marked as expired on the per/namespace basis by previous
path. Right now we have to implement selective cache shrinking. This
procedure has been ported from older OpenVz codebase.Signed-off-by: Denis V. Lunev
Signed-off-by: David S. Miller -
Signed-off-by: Denis V. Lunev
Signed-off-by: David S. Miller -
Basically, there is no difference to atomic_read internally or pass it as
a parameter as rt_hash is inline.Signed-off-by: Denis V. Lunev
Signed-off-by: David S. Miller -
Signed-off-by: Denis V. Lunev
Signed-off-by: David S. Miller -
Signed-off-by: Denis V. Lunev
Signed-off-by: David S. Miller -
Signed-off-by: Denis V. Lunev
Signed-off-by: David S. Miller -
flush delay is used as an external storage for net.ipv4.route.flush sysctl
entry. It is write-only.The ctl_table->data for this entry is used once. Fix this case to point
to the stack to remove global variable. Do this to avoid additional
variable on struct net in the next patch.Possible race (as it was before) accessing this local variable is removed
using flush_mutex.Signed-off-by: Denis V. Lunev
Signed-off-by: David S. Miller -
This is required to pass namespace context into rt_cache_flush called from
->flush_cache.Signed-off-by: Denis V. Lunev
Signed-off-by: David S. Miller -
Signed-off-by: Denis V. Lunev
Signed-off-by: David S. Miller
04 Jul, 2008
17 commits
-
Only a few ISA controllers need the pausing version of the 8390 core
while PCMCIA, later ISA and PCI do not. More importantly the ISA delays
can break non ISA boxes so we must use a different build of 8390.c for
the two sets of controllers.No changes since last time as all the points of concerns raised proved to
be invalidSigned-off-by: Alan Cox
Signed-off-by: Randy Dunlap
Signed-off-by: Andrew Morton
Signed-off-by: Jeff Garzik -
Remove no longer needed struct pvc_desc in FR code.
Requires "WAN: convert drivers to use built-in netdev_stats" patch.Signed-off-by: Krzysztof Hałasa
Signed-off-by: Jeff Garzik -
There is no point in using separate net_device_stats structs when
the one in struct net_device is present. Compiles.Signed-off-by: Krzysztof Hałasa
Signed-off-by: Jeff Garzik -
Update the NAPI implementation to use the new napi_struct infrstructure.
This removes the need of multiple net_device structs to implement a
multiqueue NAPI.Signed-off-by: PJ Waskiewicz
Signed-off-by: Jeff Kirsher
Signed-off-by: Jeff Garzik -
This patch resolves an issue seen on 82575 adapters with managability
pass-thru enabled, which could cause the system to panic.Signed-off-by: Alexander Duyck
Signed-off-by: Jeff Kirsher
Signed-off-by: Jeff Garzik -
Various cosmetic cleanups. Comment fixes. Eliminate the hw part out
of the hw_dbg macro since it's always used.Signed-off-by: Auke Kok
Signed-off-by: Jeff Kirsher
Signed-off-by: Jeff Garzik -
Currently there are items in the driver to support parameters, but there
are no parameters being added to the driver.Signed-off-by: Alexander Duyck
Signed-off-by: Jeff Kirsher
Signed-off-by: Jeff Garzik -
Function header comments do not match function name.
Signed-off-by: Jeff Kirsher
Signed-off-by: Jeff Garzik -
Simplify a bunch of calls to these functions by moving the adapter
struct out of the function arguments since that is not needed.Signed-off-by: Mitch Williams
Signed-off-by: Auke Kok
Signed-off-by: Jeff Garzik -
EEPROM access beyond the base eeprom page is unsupported.
Signed-off-by: Jeff Kirsher
Signed-off-by: Auke Kok
Signed-off-by: Jeff Garzik -
Make jumbo frame support configurable via ifconfig mtu option as suggested by
Stephen Hemminger.Cc: Stephen Hemminger
Tested-by: Andrew Savchenko
Signed-off-by: Pekka Enberg
Signed-off-by: Jeff Garzik -
Add a ->max_rxframe member to struct ipg_nic_private and convert the users of
IPG_MAX_RXFRAME_SIZE to use it instead to enable per-device jumbo frame
configuration.Tested-by: Andrew Savchenko
Signed-off-by: Pekka Enberg
Signed-off-by: Jeff Garzik -
Add a ->max_rxframe member to struct ipg_nic_private and convert the users of
IPG_RXSUPPORT_SIZE to use it instead to enable per-device jumbo frame
configuration.Tested-by: Andrew Savchenko
Signed-off-by: Pekka Enberg
Signed-off-by: Jeff Garzik -
Add a ->max_rxframe member to struct ipg_nic_private and convert the users of
IPG_RXFRAG_SIZE to use it instead to enable per-device jumbo frame
configuration.Tested-by: Andrew Savchenko
Signed-off-by: Pekka Enberg
Signed-off-by: Jeff Garzik -
Remove JUMBO_FRAME #ifdef from dev->mtu setting in ipg_nic_open() so that we
can make IPG_TXFRAG_SIZE configurable.Tested-by: Andrew Savchenko
Signed-off-by: Pekka Enberg
Signed-off-by: Jeff Garzik -
Add a ->is_jumbo boolean to struct ipg_nic_private and fix up
ipg_interrupt_handler() to call the jumbo frame version of ipg_nic_rx() if the
boolean is set to true. Also remove the JUMBO_FRAME #ifdefs so we can always
compile in support for jumbo frames.Tested-by: Andrew Savchenko
Signed-off-by: Pekka Enberg
Signed-off-by: Jeff Garzik -
…u/netdev-2.6 into upstream-next
03 Jul, 2008
11 commits
-
Add a IFF_VNET_HDR flag. This uses the same ABI as virtio_net
(ie. prepending struct virtio_net_hdr to packets) to indicate GSO and
checksum information.Signed-off-by: Rusty Russell
Acked-by: Max Krasnyansky
Signed-off-by: David S. Miller -
ethtool is useful for setting (some) device fields, but it's
root-only. Finer feature control is available through a tun-specific
ioctl.(Includes Mark McLoughlin 's fix to hold rtnl sem).
Signed-off-by: Rusty Russell
Acked-by: Max Krasnyansky
Signed-off-by: David S. Miller -
The problem with introducing checksum offload and gso to tun is they
need to set dev->features to enable GSO and/or checksumming, which is
supposed to be done before register_netdevice(), ie. as part of
TUNSETIFF.Unfortunately, TUNSETIFF has always just ignored flags it doesn't
understand, so there's no good way of detecting whether the kernel
supports new IFF_ flags.This patch implements a TUNGETFEATURES ioctl which returns all the valid IFF
flags. It could be extended later to include other features.Here's an example program which uses it:
#include
#include
#include
#include
#include
#include
#includestatic struct {
unsigned int flag;
const char *name;
} known_flags[] = {
{ IFF_TUN, "TUN" },
{ IFF_TAP, "TAP" },
{ IFF_NO_PI, "NO_PI" },
{ IFF_ONE_QUEUE, "ONE_QUEUE" },
};int main()
{
unsigned int features, i;int netfd = open("/dev/net/tun", O_RDWR);
if (netfd < 0)
err(1, "Opening /dev/net/tun");if (ioctl(netfd, TUNGETFEATURES, &features) != 0) {
printf("Kernel does not support TUNGETFEATURES, guessing\n");
features = (IFF_TUN|IFF_TAP|IFF_NO_PI|IFF_ONE_QUEUE);
}
printf("Available features are: ");
for (i = 0; i < sizeof(known_flags)/sizeof(known_flags[0]); i++) {
if (features & known_flags[i].flag) {
features &= ~known_flags[i].flag;
printf("%s ", known_flags[i].name);
}
}
if (features)
printf("(UNKNOWN %#x)", features);
printf("\n");
return 0;
}Signed-off-by: Rusty Russell
Acked-by: Max Krasnyansky
Signed-off-by: David S. Miller -
…/yoshfuji/linux-2.6-next
-
ip{,v6}_mroute_{set,get}sockopt() should not matter by optimization but
it would be better not to depend on optimization semantically.Signed-off-by: YOSHIFUJI Hideaki
-
Same as ip6_mr_init(), make ip_mr_init() return errno if fails.
But do not do error handling in inet_init(), just print a msg.Signed-off-by: Wang Chen
Signed-off-by: YOSHIFUJI Hideaki -
If do not do it, we will get following issues:
1. Leaving junks after inet6_init failing halfway.
2. Leaving proc and notifier junks after ipv6 modules unloading.Signed-off-by: Wang Chen
Signed-off-by: YOSHIFUJI Hideaki -
Outgoing interface is selected by the route decision if unspecified.
Let's prefer routes via interface(s) with the address assigned if we
have multiple routes with same cost.
With help from Naohiro Ooiwa .Signed-off-by: YOSHIFUJI Hideaki
-
- If 0, disable DAD.
- If 1, perform DAD (default).
- If >1, perform DAD and disable IPv6 operation if DAD for MAC-based
link-local address has been failed (RFC4862 5.4.5).We do not follow RFC4862 by default. Refer to the netdev thread entitled
"Linux IPv6 DAD not full conform to RFC 4862 ?"
http://www.spinics.net/lists/netdev/msg52027.htmlSigned-off-by: YOSHIFUJI Hideaki
-
Signed-off-by: YOSHIFUJI Hideaki
-
Handle interface property strictly when looking up a route
for the loopback address (RFC4291 2.5.3).Signed-off-by: YOSHIFUJI Hideaki