Fwd: Delivery Status Notification (Failure)

3 messages, 3 authors, 2015-09-24 · open the first message on its own page

Fwd: Delivery Status Notification (Failure)

From: Naveen <hidden>
Date: 2015-09-24 12:03:40

Hi
     Right now the only way to detect if an interface has a peer(veth)
is touse ethtool -S. Instead I was thinking of adding it to device
attributes as a peer_ifndex entry. In drivers/net/veth.c I could add
an entry to
dev->groups for a veth specific group. Would that be acceptable ?

Thanks
Naveen

Re: Fwd: Delivery Status Notification (Failure)

From: Andy Gospodarek <hidden>
Date: 2015-09-24 12:50:17

On Thu, Sep 24, 2015 at 08:03:39AM -0400, Naveen wrote:
Hi
     Right now the only way to detect if an interface has a peer(veth)
is touse ethtool -S. Instead I was thinking of adding it to device
attributes as a peer_ifndex entry. In drivers/net/veth.c I could add
an entry to
dev->groups for a veth specific group. Would that be acceptable ?
I've had similar discussions with others who agree with you that the
current method is not ideal -- especially when there are a large number
of namespaces in in use on a system.  One such proposal was to have the
output in ip link show (possibly only with the '-d' option), but no test
patches have been written yet....

Re: Delivery Status Notification (Failure)

From: Jiri Benc <hidden>
Date: 2015-09-24 13:09:09

On Thu, 24 Sep 2015 08:03:39 -0400, Naveen wrote:
     Right now the only way to detect if an interface has a peer(veth)
is touse ethtool -S. Instead I was thinking of adding it to device
attributes as a peer_ifndex entry. In drivers/net/veth.c I could add
an entry to
dev->groups for a veth specific group. Would that be acceptable ?
Recent kernels announce the peer in IFLA_LINK, including its netnsid
(thus it's finally possible to track peers across net namespaces).
Just try "ip a" with a recent kernel.

 Jiri

-- 
Jiri Benc
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help