Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175724815
D59091.id184668.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
977 B
Referenced Files
None
Subscribers
None
D59091.id184668.diff
View Options
Index: sys/dev/bnxt/bnxt_en/if_bnxt.c
===================================================================
--- sys/dev/bnxt/bnxt_en/if_bnxt.c
+++ sys/dev/bnxt/bnxt_en/if_bnxt.c
@@ -448,6 +448,24 @@
static struct if_shared_ctx bnxt_sctx_vf_init;
static bool sctx_initialized = false;
+static inline bool
+bnxt_device_supports_roce(uint16_t device_id)
+{
+ switch (device_id) {
+ case BCM57508:
+ case BCM57504:
+ case BCM57504_NPAR:
+ case BCM57502:
+ case BCM57601:
+ case BCM57602:
+ case BCM57604:
+ case BCM57608:
+ return true;
+ default:
+ return false;
+ }
+}
+
static inline void
bnxt_init_sctx_variants(uint16_t device_id)
{
@@ -456,7 +474,8 @@
else
bnxt_sctx_pf_init = bnxt_sctx_template;
- bnxt_sctx_pf_init.isc_admin_intrcnt = BNXT_ROCE_IRQ_COUNT;
+ bnxt_sctx_pf_init.isc_admin_intrcnt = bnxt_device_supports_roce(device_id) ?
+ BNXT_ROCE_IRQ_COUNT : 1;
if (device_id == BCM57608)
bnxt_sctx_pf_init.isc_admin_intrcnt += BNXT_MAX_MPC;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Oct 13, 7:48 PM (14 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40754545
Default Alt Text
D59091.id184668.diff (977 B)
Attached To
Mode
D59091: if_bnxt: don't reserve RoCE MSI-x on chips that don't support RoCE
Attached
Detach File
Event Timeline
Log In to Comment