git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/mlx5: workaround drop action with old kernel
[dpdk.git]
/
drivers
/
net
/
bnxt
/
tf_ulp
/
bnxt_ulp.h
diff --git
a/drivers/net/bnxt/tf_ulp/bnxt_ulp.h
b/drivers/net/bnxt/tf_ulp/bnxt_ulp.h
index
b1f090a
..
082ca50
100644
(file)
--- a/
drivers/net/bnxt/tf_ulp/bnxt_ulp.h
+++ b/
drivers/net/bnxt/tf_ulp/bnxt_ulp.h
@@
-32,6
+32,7
@@
#define BNXT_ULP_SHARED_SESSION_ENABLED 0x2
#define BNXT_ULP_APP_DEV_UNSUPPORTED 0x4
#define BNXT_ULP_HIGH_AVAIL_ENABLED 0x8
#define BNXT_ULP_SHARED_SESSION_ENABLED 0x2
#define BNXT_ULP_APP_DEV_UNSUPPORTED 0x4
#define BNXT_ULP_HIGH_AVAIL_ENABLED 0x8
+#define BNXT_ULP_APP_UNICAST_ONLY 0x10
#define ULP_VF_REP_IS_ENABLED(flag) ((flag) & BNXT_ULP_VF_REP_ENABLED)
#define ULP_SHARED_SESSION_IS_ENABLED(flag) ((flag) &\
BNXT_ULP_SHARED_SESSION_ENABLED)
#define ULP_VF_REP_IS_ENABLED(flag) ((flag) & BNXT_ULP_VF_REP_ENABLED)
#define ULP_SHARED_SESSION_IS_ENABLED(flag) ((flag) &\
BNXT_ULP_SHARED_SESSION_ENABLED)
@@
-77,6
+78,7
@@
struct bnxt_ulp_data {
struct bnxt_tun_cache_entry tun_tbl[BNXT_ULP_MAX_TUN_CACHE_ENTRIES];
bool accum_stats;
uint8_t app_id;
struct bnxt_tun_cache_entry tun_tbl[BNXT_ULP_MAX_TUN_CACHE_ENTRIES];
bool accum_stats;
uint8_t app_id;
+ uint8_t num_shared_clients;
};
struct bnxt_ulp_context {
};
struct bnxt_ulp_context {
@@
-112,6
+114,11
@@
struct ulp_tlv_param {
uint8_t value[16];
};
uint8_t value[16];
};
+struct ulp_context_list_entry {
+ TAILQ_ENTRY(ulp_context_list_entry) next;
+ struct bnxt_ulp_context *ulp_ctx;
+};
+
/*
* Allow the deletion of context only for the bnxt device that
* created the session
/*
* Allow the deletion of context only for the bnxt device that
* created the session
@@
-285,4
+292,13
@@
bnxt_ulp_cntxt_ptr2_ha_info_get(struct bnxt_ulp_context *ulp_ctx);
bool
bnxt_ulp_cntxt_ha_enabled(struct bnxt_ulp_context *ulp_ctx);
bool
bnxt_ulp_cntxt_ha_enabled(struct bnxt_ulp_context *ulp_ctx);
+
+struct bnxt_ulp_context *
+bnxt_ulp_cntxt_entry_acquire(void);
+
+void
+bnxt_ulp_cntxt_entry_release(void);
+
+uint8_t
+bnxt_ulp_cntxt_num_shared_clients_get(struct bnxt_ulp_context *ulp_ctx);
#endif /* _BNXT_ULP_H_ */
#endif /* _BNXT_ULP_H_ */