net/fm10k/base: add a flag to indicate VF trust mode

Adds boolean flag in fm10k_vf_info to support configuring
a VF to be trusted.

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
This commit is contained in:
Qi Zhang 2017-03-08 01:18:49 -05:00 committed by Ferruh Yigit
parent 66db3932dd
commit 43f8858078

View File

@ -676,6 +676,9 @@ struct fm10k_vf_info {
u8 vf_flags; /* flags indicating what modes
* are supported for the port
*/
#ifndef NO_FM10K_VF_TRUSTED_MODE
bool trusted; /* VF trust mode */
#endif
};
#define FM10K_VF_FLAG_ALLMULTI_CAPABLE (u8)(BIT(FM10K_XCAST_MODE_ALLMULTI))