drivers/net/ethernet/intel/ice/ice_sf_vsi_vlan_ops.c

Source file repositories/reference/linux-study-clean/drivers/net/ethernet/intel/ice/ice_sf_vsi_vlan_ops.c

File Facts

System
Linux kernel
Corpus path
drivers/net/ethernet/intel/ice/ice_sf_vsi_vlan_ops.c
Extension
.c
Size
506 bytes
Lines
22
Domain
Driver Families
Bucket
drivers/net
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

// SPDX-License-Identifier: GPL-2.0
/* Copyright (c) 2023, Intel Corporation. */

#include "ice_vsi_vlan_ops.h"
#include "ice_vsi_vlan_lib.h"
#include "ice_vlan_mode.h"
#include "ice.h"
#include "ice_sf_vsi_vlan_ops.h"

void ice_sf_vsi_init_vlan_ops(struct ice_vsi *vsi)
{
	struct ice_vsi_vlan_ops *vlan_ops;

	if (ice_is_dvm_ena(&vsi->back->hw))
		vlan_ops = &vsi->outer_vlan_ops;
	else
		vlan_ops = &vsi->inner_vlan_ops;

	vlan_ops->add_vlan = ice_vsi_add_vlan;
	vlan_ops->del_vlan = ice_vsi_del_vlan;
}

Annotation

Implementation Notes