mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Add a new struct for VLAN related information. Currently this holds VLAN ID and priority values, but will be expanded to hold TPID value. This reduces the changes necessary if any other values are added in future. Remove the action argument from these calls as it's always ICE_FWD_VSI. Signed-off-by: Brett Creeley <brett.creeley@intel.com> Tested-by: Gurucharan G <gurucharanx.g@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
17 lines
311 B
C
17 lines
311 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright (C) 2019-2021, Intel Corporation. */
|
|
|
|
#ifndef _ICE_VLAN_H_
|
|
#define _ICE_VLAN_H_
|
|
|
|
#include <linux/types.h>
|
|
#include "ice_type.h"
|
|
|
|
struct ice_vlan {
|
|
u16 vid;
|
|
u8 prio;
|
|
};
|
|
|
|
#define ICE_VLAN(vid, prio) ((struct ice_vlan){ vid, prio })
|
|
|
|
#endif /* _ICE_VLAN_H_ */
|