lkml.org 
[lkml]   [2021]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH v5 net-next 1/9] net: mscc: ocelot: serialize access to the MAC table
    Date
    On Fri, Sep 24, 2021 at 05:52:18PM +0800, Xiaoliang Yang wrote:
    > From: Vladimir Oltean <vladimir.oltean@nxp.com>
    >
    > DSA would like to remove the rtnl_lock from its
    > SWITCHDEV_FDB_{ADD,DEL}_TO_DEVICE handlers, and the felix driver uses
    > the same MAC table functions as ocelot.
    >
    > This means that the MAC table functions will no longer be implicitly
    > serialized with respect to each other by the rtnl_mutex, we need to add
    > a dedicated lock in ocelot for the non-atomic operations of selecting a
    > MAC table row, reading/writing what we want and polling for completion.
    >
    > Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
    > ---

    This patch needs your sign-off too.
    \
     
     \ /
      Last update: 2021-09-25 21:13    [W:2.102 / U:1.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site