|
@@ -10,6 +10,8 @@
|
|
#ifndef BNXT_VFR_H
|
|
#ifndef BNXT_VFR_H
|
|
#define BNXT_VFR_H
|
|
#define BNXT_VFR_H
|
|
|
|
|
|
|
|
+#ifdef CONFIG_BNXT_SRIOV
|
|
|
|
+
|
|
#define MAX_CFA_CODE 65536
|
|
#define MAX_CFA_CODE 65536
|
|
|
|
|
|
/* Struct to hold housekeeping info needed by devlink interface */
|
|
/* Struct to hold housekeeping info needed by devlink interface */
|
|
@@ -39,4 +41,32 @@ void bnxt_vf_reps_open(struct bnxt *bp);
|
|
void bnxt_vf_rep_rx(struct bnxt *bp, struct sk_buff *skb);
|
|
void bnxt_vf_rep_rx(struct bnxt *bp, struct sk_buff *skb);
|
|
struct net_device *bnxt_get_vf_rep(struct bnxt *bp, u16 cfa_code);
|
|
struct net_device *bnxt_get_vf_rep(struct bnxt *bp, u16 cfa_code);
|
|
|
|
|
|
|
|
+#else
|
|
|
|
+
|
|
|
|
+static inline int bnxt_dl_register(struct bnxt *bp)
|
|
|
|
+{
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static inline void bnxt_dl_unregister(struct bnxt *bp)
|
|
|
|
+{
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static inline void bnxt_vf_reps_close(struct bnxt *bp)
|
|
|
|
+{
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static inline void bnxt_vf_reps_open(struct bnxt *bp)
|
|
|
|
+{
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static inline void bnxt_vf_rep_rx(struct bnxt *bp, struct sk_buff *skb)
|
|
|
|
+{
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static inline struct net_device *bnxt_get_vf_rep(struct bnxt *bp, u16 cfa_code)
|
|
|
|
+{
|
|
|
|
+ return NULL;
|
|
|
|
+}
|
|
|
|
+#endif /* CONFIG_BNXT_SRIOV */
|
|
#endif /* BNXT_VFR_H */
|
|
#endif /* BNXT_VFR_H */
|