[net-next v14 06/12] net: mtip: Add net_device_ops functions to the L2 switch driver
Paolo Abeni
pabeni at redhat.com
Tue Jul 8 03:03:27 PDT 2025
On 7/1/25 1:49 PM, Lukasz Majewski wrote:
> +static netdev_tx_t mtip_start_xmit_port(struct sk_buff *skb,
> + struct net_device *dev, int port)
> +{
> + struct mtip_ndev_priv *priv = netdev_priv(dev);
> + struct switch_enet_private *fep = priv->fep;
> + unsigned short status;
> + struct cbd_t *bdp;
> + void *bufaddr;
> +
> + spin_lock(&fep->hw_lock);
mtip_start_xmit_port() runs with BH disabled. The above lock variant is
inconsistent with what you use in patch 4. Please be sure to run tests
vs the next iteration with CONFIG_PROVE_LOCKING enabled.
/P
More information about the linux-arm-kernel
mailing list