Hi netdev,
quick question: is there a recommended setup to get a send-only packet
socket? I've been reading net/packet/af_packet.c up and down and don't
see an explicit way, so I ended up binding to ("lo", ETH_P_LOOP)
instead. (Nothing special about ETH_P_LOOP, I just grabbed a random
value tha
This implements holding dst metadata information in the bridge layer,
but only for unicast entries in the MAC table. Multicast is still left
to design and implement.
Signed-off-by: David Lamparter
---
include/net/dst_metadata.h | 19 +--
net/bridge/br_device.c | 4
This wires up the neccessary calls for VPLS into the MPLS forwarding
pieces. Since CONFIG_MPLS_VPLS doesn't exist yet in Kconfig, it'll
never be enabled, so we're on the stubs for now.
Signed-off-by: David Lamparter
---
include/uapi/linux/rtnetlink.h | 1 +
net/mpls/af_mpls.c
[TODO: maybe rename this to MPLS_FLAGS and use it for non-pseudowire OAM
bits too (e.g. enabling G-ACh or LSP ping.)]
Signed-off-by: David Lamparter
---
include/uapi/linux/rtnetlink.h | 4
net/mpls/af_mpls.c | 11 +++
net/mpls/internal.h| 8 ++--
net
Hi all,
triggered by Amine posting VPLS support earlier, this is what I had in
mind on my end. You may note the patches share some bits, this is
because both series are derived from hacks I did at 33C3 in December
2016.
This patchset is different in the following ways:
- one vpls device encapsu
This makes mpls_rt_xmit() available for use in upcoming VPLS code. Same
for mpls_route_input_rcu().
Signed-off-by: David Lamparter
---
net/mpls/af_mpls.c | 48 ++--
net/mpls/internal.h | 4
2 files changed, 34 insertions(+), 18 deletions
[work-in-progress, works but needs changes]
[v2: refactored lots of things, e.g. dst_metadata, no more genetlink]
Signed-off-by: David Lamparter
---
include/net/dst_metadata.h | 21 ++
include/net/vpls.h | 8 +
net/mpls/Kconfig | 11 ++
net/mpls/Makefile | 1
Add a NDA_VPLS_WIRE attribute to the FDB dump if we have dst metadata
that is indicative of a VPLS pseudowire. This is really helpful for
debugging.
Signed-off-by: David Lamparter
---
include/uapi/linux/neighbour.h | 1 +
net/bridge/br_fdb.c| 12
2 files changed, 13
Hi Nikolay,
On Wed, Aug 16, 2017 at 11:38:06PM +0300, Nikolay Aleksandrov wrote:
> On 16/08/17 20:01, David Lamparter wrote:
> > This implements holding dst metadata information in the bridge layer,
> > but only for unicast entries in the MAC table. Multicast is still left
&g
On Thu, Aug 17, 2017 at 02:51:12PM +0300, Nikolay Aleksandrov wrote:
> On 17/08/17 14:39, Nikolay Aleksandrov wrote:
> > On 17/08/17 14:03, David Lamparter wrote:
> >> On Wed, Aug 16, 2017 at 11:38:06PM +0300, Nikolay Aleksandrov wrote:
[cut]
> >>> and hitting the f
On Thu, Aug 17, 2017 at 02:10:20PM +0200, David Lamparter wrote:
> On Thu, Aug 17, 2017 at 02:51:12PM +0300, Nikolay Aleksandrov wrote:
> > On 17/08/17 14:39, Nikolay Aleksandrov wrote:
> > > On 17/08/17 14:03, David Lamparter wrote:
> > >> On Wed, Aug 16, 201
On Thu, Aug 17, 2017 at 02:39:43PM +0300, Nikolay Aleksandrov wrote:
> On 17/08/17 14:03, David Lamparter wrote:
> > On Wed, Aug 16, 2017 at 11:38:06PM +0300, Nikolay Aleksandrov wrote:
> >> On 16/08/17 20:01, David Lamparter wrote:
> >> and hitting the fast path for
On Wed, Aug 16, 2017 at 11:38:06PM +0300, Nikolay Aleksandrov wrote:
> On 16/08/17 20:01, David Lamparter wrote:
> > This implements holding dst metadata information in the bridge layer,
> > but only for unicast entries in the MAC table. Multicast is still left
> > to
ack in the
struct to be zeroed for the only other type currently in existance
(METADATA_HW_PORT_MUX), but nevertheless it's not correct.
Fixes: 3fcece12bc1b6dcdf0986f2cd9e8f63b1f9b6aa0
Signed-off-by: David Lamparter
Cc: Jakub Kicinski
Cc: Sridhar Samudrala
Cc: Simon Horman
Cc: David S. Mi
s far enough back in the
struct to be zeroed for the only other type currently in existance
(METADATA_HW_PORT_MUX), but nevertheless it's not correct.
Fixes: 3fcece12bc1b ("net: store port/representator id in metadata_dst")
Signed-off-by: David Lamparter
Cc: Jakub Kicinski
Cc: Srid
On Mon, Aug 21, 2017 at 04:01:15PM +0200, Amine Kherbouche wrote:
> On 08/16/2017 07:01 PM, David Lamparter wrote:
> > This wires up the neccessary calls for VPLS into the MPLS forwarding
> > pieces. Since CONFIG_MPLS_VPLS doesn't exist yet in Kconfig, it'll
> > ne
On Mon, Aug 21, 2017 at 05:14:46PM +0200, Amine Kherbouche wrote:
> > +#include
>
> some headers are not needed.
Which ones? net/ip_tunnels.h is needed for ip_tunnel_get_stats64().
> > +static netdev_tx_t vpls_xmit(struct sk_buff *skb, struct net_device *dev)
> > +{
> > + int err = -EINVAL,
Hi all,
this is an update on the earlier "[RFC net-next] VPLS support". Note
I've changed the subject lines on some of the patches to better reflect
what they really do (tbh the earlier subject lines were crap.)
As previously, iproute2 / FRR patches are at:
- https://github.com/eqvinox/vpls-ipr
fixed race in fdb update with atomic_xchg]
[v3: consistently use metadata_dst pointer]
[v4: patch renamed]
Signed-off-by: David Lamparter
---
include/net/dst_metadata.h | 27 ++-
net/bridge/br_device.c | 4
net/bridge/br
[work-in-progress, works but needs changes]
[v2: refactored lots of things, e.g. dst_metadata, no more genetlink]
[v4: removed pointless include/net/vpls.h, squashed pseudowire control
word support, squashed netlink lwtunnel access bits]
Signed-off-by: David Lamparter
---
include/net
appropriately. VLAN to key mapping is not supported. Implementing
NVGRE was actually an unintentional side effect.
[v2: move src/dst flipping to RX path, allow zero tunnel daddr]
Signed-off-by: David Lamparter
---
net/ipv4/ip_gre.c| 40 +++-
net/ipv4
abling G-ACh or LSP ping.)]
Signed-off-by: David Lamparter
---
include/uapi/linux/rtnetlink.h | 5
net/mpls/af_mpls.c | 65 ++
net/mpls/internal.h| 40 ++
3 files changed, 104 insertions(+), 6 deletions
be just pass the entire netlink attr block down?]
Signed-off-by: David Lamparter
---
include/linux/netdevice.h | 18 +
include/net/ip_tunnels.h | 5 +++
include/uapi/linux/neighbour.h | 2 +
net/bridge/br.c| 2 +-
net/
This makes mpls_rt_xmit() available for use in upcoming VPLS code. Same
for mpls_route_input_rcu().
Signed-off-by: David Lamparter
---
net/mpls/af_mpls.c | 48 ++--
net/mpls/internal.h | 4
2 files changed, 34 insertions(+), 18 deletions
On Mon, Aug 21, 2017 at 05:01:51PM -0700, Stephen Hemminger wrote:
> On Mon, 21 Aug 2017 19:15:17 +0200 David Lamparter wrote:
> > > P.S.: For a little context on the bridge FDB changes - I'm hoping to
> > > find some time to extend this to the MDB to allow aggregat
On Mon, Aug 21, 2017 at 09:43:15PM -0700, Roopa Prabhu wrote:
> > This is relevant to the discussion because it's a feature which is
> > non-obvious (to me) on how to do with the VXLAN model of having an
> > entirely separate FDB. Meanwhile, with this architecture, the proof of
> > concept / hack
On Tue, Aug 22, 2017 at 02:01:40PM +0300, Nikolay Aleksandrov wrote:
> On 22/08/17 03:01, Stephen Hemminger wrote:
> > I know the bridge is an easy target to extend L2 forwarding, but it is not
> > the only option. Have you condidered building a new driver (like VXLAN does)
> > which does the forwa
On Tue, Aug 22, 2017 at 02:55:04PM +0300, Nikolay Aleksandrov wrote:
> On 22/08/17 14:32, David Lamparter wrote:
> > On Tue, Aug 22, 2017 at 02:01:40PM +0300, Nikolay Aleksandrov wrote:
> >> On 22/08/17 03:01, Stephen Hemminger wrote:
> >>> I know the bridge
On Thu, Aug 10, 2017 at 10:28:36PM +0200, Amine Kherbouche wrote:
> Mpls handler allows creation/deletion of mpls routes without using
> rtnetlink. When an incoming mpls packet matches this route, the saved
> function handler is called.
Since I originally authored this patch, I have come to believ
On Thu, Aug 10, 2017 at 10:28:37PM +0200, Amine Kherbouche wrote:
> This commit introduces the support of VPLS virtual device, that allows
> performing L2VPN multipoint to multipoint communication over MPLS PSN.
>
> VPLS device encap received ethernet frame over mpls packet and send it the
> outp
On Sat, Aug 12, 2017 at 08:29:18PM -0700, Roopa Prabhu wrote:
> On Sat, Aug 12, 2017 at 6:35 AM, Amine Kherbouche
> wrote:
> >
> >
> > On 11/08/2017 16:37, Roopa Prabhu wrote:
> >>
> >> On Fri, Aug 11, 2017 at 5:34 AM, David Lamparter
> >> wr
Change formatting of IPv6 tunnel endpoints from hex chain to standard IPv6
representation.
Signed-off-by: David Lamparter <[EMAIL PROTECTED]>
---
lib/ll_addr.c |3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/lib/ll_addr.c b/lib/ll_addr.c
index 581487d..f558050
rtpanic/
(includes pictures of the panics, in case I have a typo somewhere)
Requests for more information / patches welcome, but expect delayed
response.
More information attached.
Greetings,
David Lamparter
BUG: unable to handle kernel NULL pointer derference at virtual address 021
turn ieee80211_sta_find_ibss(dev, ifsta);
However, I have NO CLUE WHAT I'M DOING THERE! Make a proper fix!
(Especially, I think it needs more netif_carrier_off calls in
different places.)
Anyway, thanks for my now-working wireless,
David Lamparter
-
To unsubscribe from this list: send t
Well, unfortunately... [below]
On Tue, Feb 16, 2016 at 02:59:51PM -0800, David Ahern wrote:
> +++ b/net/ipv4/devinet.c
> @@ -1214,12 +1215,16 @@ __be32 inet_select_addr(const struct net_device *dev,
> __be32 dst, int scope)
> if (addr)
> goto out_unlock;
> no_in_dev:
> +
well be a non-routable address.
Cc: David Ahern
Signed-off-by: David Lamparter
---
This patch applies on top of the one by dsa@ in the root of this thread.
---
net/ipv4/devinet.c | 18 ++
1 file changed, 18 insertions(+)
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c
36 matches
Mail list logo