mem: add dirty malloc element support
[dpdk.git] / drivers / raw / cnxk_bphy / cnxk_bphy_cgx.c
index 693a9cd..0b694e1 100644 (file)
@@ -28,7 +28,7 @@ static void
 cnxk_bphy_cgx_format_name(char *name, unsigned int len,
                          struct rte_pci_device *pci_dev)
 {
-       snprintf(name, len, "BPHY_CGX:%x:%02x.%x", pci_dev->addr.bus,
+       snprintf(name, len, "BPHY_CGX:%02x:%02x.%x", pci_dev->addr.bus,
                 pci_dev->addr.devid, pci_dev->addr.function);
 }
 
@@ -131,6 +131,10 @@ cnxk_bphy_cgx_process_buf(struct cnxk_bphy_cgx *cgx, unsigned int queue,
                ret = roc_bphy_cgx_fec_supported_get(cgx->rcgx, lmac, fec);
                rsp = fec;
                break;
+       case CNXK_BPHY_CGX_MSG_TYPE_SET_FEC:
+               fec = msg->data;
+               ret = roc_bphy_cgx_fec_set(cgx->rcgx, lmac, *fec);
+               break;
        default:
                return -EINVAL;
        }