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-next>] [day] [month] [year] [list]
Message-Id: <20220104171413.2293847-1-vladimir.oltean@nxp.com>
Date:   Tue,  4 Jan 2022 19:13:58 +0200
From:   Vladimir Oltean <vladimir.oltean@....com>
To:     netdev@...r.kernel.org
Cc:     "David S. Miller" <davem@...emloft.net>,
        Jakub Kicinski <kuba@...nel.org>, Andrew Lunn <andrew@...n.ch>,
        Vivien Didelot <vivien.didelot@...il.com>,
        Florian Fainelli <f.fainelli@...il.com>,
        Horatiu Vultur <horatiu.vultur@...rochip.com>,
        George McCollister <george.mccollister@...il.com>
Subject: [PATCH net-next 00/15] DSA miscellaneous cleanups

This is an assorted set of cleanups with the purpose of consolidating
the development work done recently, and preparing the code base for more
changes.

- delete one unnecessary code path for DSA master initialization
- less frequent rtnetlink locking during DSA slave initialization
- symmetric DSA switch tree initialization and teardown
- deleted no-op cross-chip notifier support for MRP and HSR
- struct dsa_port reduced from 576 to 544 bytes, and first cache line a
  bit better organized
- struct dsa_switch from 160 to 136 bytes, and first cache line a bit
  better organized
- struct dsa_switch_tree from 112 to 104 bytes, and first cache line a
  bit better organized

Cc: Horatiu Vultur <horatiu.vultur@...rochip.com>
Cc: George McCollister <george.mccollister@...il.com>

Vladimir Oltean (15):
  net: dsa: reorder PHY initialization with MTU setup in slave.c
  net: dsa: merge rtnl_lock sections in dsa_slave_create
  net: dsa: stop updating master MTU from master.c
  net: dsa: hold rtnl_mutex when calling dsa_master_{setup,teardown}
  net: dsa: first set up shared ports, then non-shared ports
  net: dsa: setup master before ports
  net: dsa: remove cross-chip support for MRP
  net: dsa: remove cross-chip support for HSR
  net: dsa: move dsa_port :: stp_state near dsa_port :: mac
  net: dsa: merge all bools of struct dsa_port into a single u8
  net: dsa: move dsa_port :: type near dsa_port :: index
  net: dsa: merge all bools of struct dsa_switch into a single u32
  net: dsa: make dsa_switch :: num_ports an unsigned int
  net: dsa: move dsa_switch_tree :: ports and lags to first cache line
  net: dsa: combine two holes in struct dsa_switch_tree

 include/net/dsa.h  | 146 +++++++++++++++++++++++++--------------------
 net/dsa/dsa2.c     |  71 ++++++++++++++++------
 net/dsa/dsa_priv.h |   6 --
 net/dsa/master.c   |  29 +--------
 net/dsa/port.c     |  64 ++++++++------------
 net/dsa/slave.c    |  12 ++--
 net/dsa/switch.c   |  88 ---------------------------
 7 files changed, 167 insertions(+), 249 deletions(-)

-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ