-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ice: basic support for VLAN in subfunctions
Implement add / delete vlan for subfunction type VSI. Reviewed-by: Simon Horman <horms@kernel.org> Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com> Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com> Tested-by: Rafal Romanowski <rafal.romanowski@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
- Loading branch information
Michal Swiatkowski
authored and
Tony Nguyen
committed
Sep 6, 2024
1 parent
7cde474
commit 0c6a3cb
Showing
4 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// 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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
/* Copyright (c) 2023, Intel Corporation. */ | ||
|
||
#ifndef _ICE_SF_VSI_VLAN_OPS_H_ | ||
#define _ICE_SF_VSI_VLAN_OPS_H_ | ||
|
||
#include "ice_vsi_vlan_ops.h" | ||
|
||
struct ice_vsi; | ||
|
||
void ice_sf_vsi_init_vlan_ops(struct ice_vsi *vsi); | ||
|
||
#endif /* _ICE_SF_VSI_VLAN_OPS_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters