lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMDZJNXgiRzLxnLg1ymTL0xSEh8wOgL4RWxTbcU=Y3vU-s=_Ng@mail.gmail.com>
Date:   Tue, 23 Jun 2020 09:24:25 +0800
From:   Tonghao Zhang <xiangxia.m.yue@...il.com>
To:     Eli Cohen <eli@...lanox.com>
Cc:     ozsh@...lanox.com, Saeed Mahameed <saeedm@...lanox.com>,
        Linux Kernel Network Developers <netdev@...r.kernel.org>
Subject: Re: mlx5e uplink hairpin forwarding

On Sun, Jun 21, 2020 at 2:36 AM Eli Cohen <eli@...lanox.com> wrote:
>
> On Sat, Jun 20, 2020 at 08:02:19PM +0800, Tonghao Zhang wrote:
> > Hi Eli
> >
> > I review your patches and try to test it.
> > $ tc filter add dev enp130s0f0  protocol ip prio 1 root flower dst_ip
> > 11.12.13.14 skip_sw action mirred egress redirect dev enp130s0f1
> > or
> > $ tc filter add dev enp130s0f0  protocol ip prio 1 parent ffff: flower
> > dst_ip 11.12.13.14 skip_sw action mirred egress redirect dev
> > enp130s0f1
> >
> > TC can't install the rules above. The error message:
> > mlx5_core: devices are both uplink, can't offload forwarding.
> >
> > So how can I install hairpin rules between uplink and uplink forwarding ?
> >
> > The test environment
> > kernel 5.8.0-rc1+, the last commit id:69119673bd50b176ded34032fadd41530fb5af21
> > NIC MCX512A-ACA_Ax
> > FW 16.27.2008
> > enp130s0f0、enp130s0f1 are uplink rep.
> >
>
> Hi Tonghao,
> please note that hairpin is supported on the same uplink representor.
> You cannot hairpin from one uplink to another.
Hi Eli
Still not work

$ tc filter add dev enp130s0f0 protocol ip prio 1 root flower skip_sw
dst_ip 11.12.13.14 action mirred egress redirect dev enp130s0f0
Error: mlx5_core: devices are both uplink, can't offload forwarding.

$ tc filter add dev enp130s0f0 protocol ip prio 1 parent ffff: flower
skip_sw dst_ip 11.12.13.14 action mirred egress redirect dev
enp130s0f0
Error: mlx5_core: devices are both uplink, can't offload forwarding.

The firmware used doesn't support that feature?
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=613f53fe09a27f928a7d05132e1a74b5136e8f04

-- 
Best regards, Tonghao

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ