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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpU_NAQd7UHJiPepx2-Oav-dK5XoQ-Jy84XbF7N6c1gD=Q@mail.gmail.com>
Date:   Fri, 11 Jan 2019 14:50:13 -0800
From:   Cong Wang <xiyou.wangcong@...il.com>
To:     Tonghao Zhang <xiangxia.m.yue@...il.com>
Cc:     Saeed Mahameed <saeedm@...lanox.com>, leonro@...lanox.com,
        Linux Kernel Network Developers <netdev@...r.kernel.org>,
        Hadar Hen Zion <hadarh@...lanox.com>
Subject: Re: [PATCH] net: mlx5: update hw flows when encap source mac changed

On Fri, Jan 11, 2019 at 6:19 AM <xiangxia.m.yue@...il.com> wrote:
> @@ -622,17 +629,20 @@ static void mlx5e_rep_neigh_update(struct work_struct *work)
>         memcpy(ha, n->ha, ETH_ALEN);
>         nud_state = n->nud_state;
>         dead = n->dead;
> +       netdev = n->dev;
>         read_unlock_bh(&n->lock);
>
>         neigh_connected = (nud_state & NUD_VALID) && !dead;
> +       source_mac_changed = (e->h_source == netdev) && !ether_addr_equal(e->h_source, netdev->dev_addr);

I don't know why you want to compare ->h_source, which points to
a mac address, with a net_device pointer here.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ