FreeBSD Bugzilla – Attachment 241972 Details for
Bug 269133
bnxt(4): BCM57416 - HWRM_CFA_L2_SET_RX_MASK command returned RESOURCE_ALLOC_ERROR error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
bnxt-patch.diff
bnxt.diff (text/plain), 2.10 KB, created by
Santiago Martinez
on 2023-05-04 16:27:49 UTC
(
hide
)
Description:
bnxt-patch.diff
Filename:
MIME Type:
Creator:
Santiago Martinez
Created:
2023-05-04 16:27:49 UTC
Size:
2.10 KB
patch
obsolete
>--- bnxt_hwrm.c 2023-05-04 16:24:16.479566000 +0300 >+++ /root/bnxt_hwrm.c 2023-05-04 16:24:36.493105000 +0300 >@@ -1481,29 +1481,31 @@ > uint32_t enables = 0; > int rc = 0; > >- if (*filter_id != -1) { >- device_printf(softc->dev, "Attempt to re-allocate l2 ctx " >- "filter (fid: 0x%jx)\n", (uintmax_t)*filter_id); >- return EDOOFUS; >- } > >+// if (*filter_id != -1) { >+// device_printf(softc->dev, "Attempt to re-allocate l2 ctx " >+// "filter (fid: 0x%jx)\n", (uintmax_t)*filter_id); >+// return EDOOFUS; >+// } >+ > resp = (void *)softc->hwrm_cmd_resp.idi_vaddr; > bnxt_hwrm_cmd_hdr_init(softc, &req, HWRM_CFA_L2_FILTER_ALLOC); > > req.flags = htole32(HWRM_CFA_L2_FILTER_ALLOC_INPUT_FLAGS_PATH_RX); >- enables = HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_ADDR >- | HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_ADDR_MASK >- | HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_DST_ID; >+ enables = >+ HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_ADDR >+ | HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_ADDR_MASK >+ | HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_DST_ID; > >- if (vlan_tag != 0xffff) { >- enables |= >- HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_IVLAN | >- HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_IVLAN_MASK | >- HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_NUM_VLANS; >- req.l2_ivlan_mask = 0xffff; >- req.l2_ivlan = vlan_tag; >- req.num_vlans = 1; >- } >+// if (vlan_tag != 0xffff) { >+// enables |= >+// HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_IVLAN | >+// HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_IVLAN_MASK | >+// HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_NUM_VLANS; >+// req.l2_ivlan_mask = 0xF000; >+// req.l2_ivlan = vlan_tag; >+// req.num_vlans = 1; >+// } > > req.enables = htole32(enables); > req.dst_id = htole16(vnic->id);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 269133
: 241972 |
243922