net/fm10k/base: add a flag to indicate VF trust mode
authorQi Zhang <qi.z.zhang@intel.com>
Wed, 8 Mar 2017 06:18:49 +0000 (01:18 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 13:52:52 +0000 (15:52 +0200)
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>
drivers/net/fm10k/base/fm10k_type.h

index 3fc8f13..fe3e498 100644 (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))