// SPDX-License-Identifier: GPL-2.0-only /**************************************************************************** * Driver for Solarflare network controllers and boards * Copyright 2022 Xilinx Inc. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published * by the Free Software Foundation, incorporated herein by reference.
*/
/* .ndo_setup_tc implementation * Entry point for flower block and filter management.
*/ int efx_tc_setup(struct net_device *net_dev, enum tc_setup_type type, void *type_data)
{ struct efx_nic *efx = efx_netdev_priv(net_dev);
if (efx->type->is_vf) return -EOPNOTSUPP; if (!efx->tc) return -EOPNOTSUPP;
if (type == TC_SETUP_CLSFLOWER) return efx_tc_flower(efx, net_dev, type_data, NULL); if (type == TC_SETUP_BLOCK) return efx_tc_setup_block(net_dev, efx, type_data, NULL);
return -EOPNOTSUPP;
}
int efx_tc_netdev_event(struct efx_nic *efx, unsignedlong event, struct net_device *net_dev)
{ if (efx->type->is_vf) return NOTIFY_DONE;
if (event == NETDEV_UNREGISTER)
efx_tc_unregister_egdev(efx, net_dev);
return NOTIFY_OK;
}
Messung V0.5 in Prozent
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.70Angebot
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-06-07)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.