<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/net/veth.c, branch linux-2.6.30.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.30.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.30.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2009-04-27T10:04:58Z</updated>
<entry>
<title>veth: prevent oops caused by netdev destructor</title>
<updated>2009-04-27T10:04:58Z</updated>
<author>
<name>Stephen Hemminger</name>
</author>
<published>2009-04-27T10:04:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ae0e8e82205c903978a79ebf5e31c670b61fa5b4'/>
<id>urn:sha1:ae0e8e82205c903978a79ebf5e31c670b61fa5b4</id>
<content type='text'>
From: Stephen Hemminger &lt;shemminger@vyatta.com&gt;

The veth driver will oops if sysfs hooks are open while module is removed.

The net device destructor can not point to code in a module; basically
there are only two possible safe values: NULL - no destructor, or
free_netdev - free on last use

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;

</content>
</entry>
<entry>
<title>veth: Allow setting the L3 MTU</title>
<updated>2009-03-04T07:36:04Z</updated>
<author>
<name>Eric Biederman</name>
</author>
<published>2009-03-04T07:36:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=38d408152a86598a50680a82fe3353b506630409'/>
<id>urn:sha1:38d408152a86598a50680a82fe3353b506630409</id>
<content type='text'>
The limitation to only 1500 byte mtu's limits the utility of the veth
device for testing routing.  So implement implement a configurable
MTU.

For consistency I drop packets on the receive side when they are
larger than the MTU.  I count those drops.  And I allow
a little padding for vlan headers.

I also test the mtu when a new device is created with netlink
because that path currently bypasses the current mtu setting
code.

Signed-off-by: Eric Biederman &lt;ebiederm@aristanetworks.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>veth: Fix carrier detect</title>
<updated>2009-03-02T04:44:21Z</updated>
<author>
<name>Eric W. Biederman</name>
</author>
<published>2009-02-25T19:47:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2cf48a10aa1f45c7b1f1117a829f2f8a1a1309e2'/>
<id>urn:sha1:2cf48a10aa1f45c7b1f1117a829f2f8a1a1309e2</id>
<content type='text'>
The current implementation of carrier detect in veth is broken.
It reports the link is down until both sides of the veth pair
are administatively up and then forever after it reports link up.

So fix veth so that it only reports link up when both interfaces
of the pair are administratively up.

Signed-off-by: Eric Biederman &lt;ebiederm@aristanetworks.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>veth : add the set_mac_address capability</title>
<updated>2009-02-22T08:04:45Z</updated>
<author>
<name>Daniel Lezcano</name>
</author>
<published>2009-02-22T08:04:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ee923623177249cf22c43419ad0e8ff926dd1f58'/>
<id>urn:sha1:ee923623177249cf22c43419ad0e8ff926dd1f58</id>
<content type='text'>
Fix lost set_mac_address capability.

Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@free.fr&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>netdev: add more functions to netdevice ops</title>
<updated>2008-11-21T04:14:53Z</updated>
<author>
<name>Stephen Hemminger</name>
</author>
<published>2008-11-21T04:14:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=008298231abbeb91bc7be9e8b078607b816d1a4a'/>
<id>urn:sha1:008298231abbeb91bc7be9e8b078607b816d1a4a</id>
<content type='text'>
This patch moves neigh_setup and hard_start_xmit into the network device ops
structure. For bisection, fix all the previously converted drivers as well.
Bonding driver took the biggest hit on this.

Added a prefetch of the hard_start_xmit in the fast path to try and reduce
any impact this would have.

Signed-off-by: Stephen Hemminger &lt;shemminger@vyatta.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>veth: convert to net_device_ops</title>
<updated>2008-11-20T06:42:39Z</updated>
<author>
<name>Stephen Hemminger</name>
</author>
<published>2008-11-20T05:50:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4456e7bdf74c9f27e2312a6f197b2da467541433'/>
<id>urn:sha1:4456e7bdf74c9f27e2312a6f197b2da467541433</id>
<content type='text'>
Convert to net_device_ops function table.

Signed-off-by: Stephen Hemminger &lt;shemminger@vyatta.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>veth: remove unused list</title>
<updated>2008-10-29T06:02:33Z</updated>
<author>
<name>Daniel Lezcano</name>
</author>
<published>2008-10-29T05:08:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3717746ef8b5a9279281b5d318496710984ed739'/>
<id>urn:sha1:3717746ef8b5a9279281b5d318496710984ed739</id>
<content type='text'>
The veth network device is stored in a list in the netdev private.
AFAICS, this list is never used so I removed this list from the code.

Signed-off-by: Daniel Lezcano &lt;dlezcano@fr.ibm.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>veth: Remove useless veth field</title>
<updated>2008-10-29T06:02:33Z</updated>
<author>
<name>Daniel Lezcano</name>
</author>
<published>2008-10-29T05:08:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bb7bba3d56963be59bc6764c8021290ed55205ad'/>
<id>urn:sha1:bb7bba3d56963be59bc6764c8021290ed55205ad</id>
<content type='text'>
The veth private structure contains a netdev pointer refering to its peer.
This field is never used and it is pointless because if we can access,
the veth_priv, that means we already have the netdev which is stored
in veth_priv-&gt;dev.

Signed-off-by: Daniel Lezcano &lt;dlezcano@fr.ibm.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NET] NETNS: Omit net_device-&gt;nd_net without CONFIG_NET_NS.</title>
<updated>2008-03-25T19:39:53Z</updated>
<author>
<name>YOSHIFUJI Hideaki</name>
</author>
<published>2008-03-25T12:47:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c346dca10840a874240c78efe3f39acf4312a1f2'/>
<id>urn:sha1:c346dca10840a874240c78efe3f39acf4312a1f2</id>
<content type='text'>
Introduce per-net_device inlines: dev_net(), dev_net_set().
Without CONFIG_NET_NS, no namespace other than &amp;init_net exists.
Let's explicitly define them to help compiler optimizations.

Signed-off-by: YOSHIFUJI Hideaki &lt;yoshfuji@linux-ipv6.org&gt;
</content>
</entry>
<entry>
<title>veth: fix dev refcount race</title>
<updated>2008-02-20T08:21:47Z</updated>
<author>
<name>Daniel Lezcano</name>
</author>
<published>2008-02-20T08:21:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c15853f2c1c9baaa27bbc494cd183be96f6d9bb9'/>
<id>urn:sha1:c15853f2c1c9baaa27bbc494cd183be96f6d9bb9</id>
<content type='text'>
When deleting the veth driver, veth_close calls netif_carrier_off
for the two extremities of the network device. netif_carrier_off on
the peer device will fire an event and hold a reference on the peer
device. Just after, the peer is unregistered taking the rtnl_lock while
the linkwatch_event is scheduled. If __linkwatch_run_queue does not
occurs before the unregistering, unregister_netdevice will wait for
the dev refcount to reach zero holding the rtnl_lock and linkwatch_event
will wait for the rtnl_lock and hold the dev refcount.

Signed-off-by: Daniel Lezcano &lt;dlezcano@fr.ibm.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
