Commit 9a005c38 authored by Jonathan Lemon's avatar Jonathan Lemon Committed by David S. Miller

bnxt_en: add newline to netdev_*() format strings

Add missing newlines to netdev_* format strings so the lines
aren't buffered by the printk subsystem.
Nitpicked-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarJonathan Lemon <jonathan.lemon@gmail.com>
Acked-by: default avatarMichael Chan <michael.chan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e34f1753
...@@ -11252,7 +11252,7 @@ static void bnxt_cfg_ntp_filters(struct bnxt *bp) ...@@ -11252,7 +11252,7 @@ static void bnxt_cfg_ntp_filters(struct bnxt *bp)
} }
} }
if (test_and_clear_bit(BNXT_HWRM_PF_UNLOAD_SP_EVENT, &bp->sp_event)) if (test_and_clear_bit(BNXT_HWRM_PF_UNLOAD_SP_EVENT, &bp->sp_event))
netdev_info(bp->dev, "Receive PF driver unload event!"); netdev_info(bp->dev, "Receive PF driver unload event!\n");
} }
#else #else
...@@ -11759,7 +11759,7 @@ static int bnxt_pcie_dsn_get(struct bnxt *bp, u8 dsn[]) ...@@ -11759,7 +11759,7 @@ static int bnxt_pcie_dsn_get(struct bnxt *bp, u8 dsn[])
u32 dw; u32 dw;
if (!pos) { if (!pos) {
netdev_info(bp->dev, "Unable do read adapter's DSN"); netdev_info(bp->dev, "Unable do read adapter's DSN\n");
return -EOPNOTSUPP; return -EOPNOTSUPP;
} }
......
...@@ -641,14 +641,14 @@ static int bnxt_dl_params_register(struct bnxt *bp) ...@@ -641,14 +641,14 @@ static int bnxt_dl_params_register(struct bnxt *bp)
rc = devlink_params_register(bp->dl, bnxt_dl_params, rc = devlink_params_register(bp->dl, bnxt_dl_params,
ARRAY_SIZE(bnxt_dl_params)); ARRAY_SIZE(bnxt_dl_params));
if (rc) { if (rc) {
netdev_warn(bp->dev, "devlink_params_register failed. rc=%d", netdev_warn(bp->dev, "devlink_params_register failed. rc=%d\n",
rc); rc);
return rc; return rc;
} }
rc = devlink_port_params_register(&bp->dl_port, bnxt_dl_port_params, rc = devlink_port_params_register(&bp->dl_port, bnxt_dl_port_params,
ARRAY_SIZE(bnxt_dl_port_params)); ARRAY_SIZE(bnxt_dl_port_params));
if (rc) { if (rc) {
netdev_err(bp->dev, "devlink_port_params_register failed"); netdev_err(bp->dev, "devlink_port_params_register failed\n");
devlink_params_unregister(bp->dl, bnxt_dl_params, devlink_params_unregister(bp->dl, bnxt_dl_params,
ARRAY_SIZE(bnxt_dl_params)); ARRAY_SIZE(bnxt_dl_params));
return rc; return rc;
...@@ -679,7 +679,7 @@ int bnxt_dl_register(struct bnxt *bp) ...@@ -679,7 +679,7 @@ int bnxt_dl_register(struct bnxt *bp)
else else
dl = devlink_alloc(&bnxt_vf_dl_ops, sizeof(struct bnxt_dl)); dl = devlink_alloc(&bnxt_vf_dl_ops, sizeof(struct bnxt_dl));
if (!dl) { if (!dl) {
netdev_warn(bp->dev, "devlink_alloc failed"); netdev_warn(bp->dev, "devlink_alloc failed\n");
return -ENOMEM; return -ENOMEM;
} }
...@@ -692,7 +692,7 @@ int bnxt_dl_register(struct bnxt *bp) ...@@ -692,7 +692,7 @@ int bnxt_dl_register(struct bnxt *bp)
rc = devlink_register(dl, &bp->pdev->dev); rc = devlink_register(dl, &bp->pdev->dev);
if (rc) { if (rc) {
netdev_warn(bp->dev, "devlink_register failed. rc=%d", rc); netdev_warn(bp->dev, "devlink_register failed. rc=%d\n", rc);
goto err_dl_free; goto err_dl_free;
} }
...@@ -704,7 +704,7 @@ int bnxt_dl_register(struct bnxt *bp) ...@@ -704,7 +704,7 @@ int bnxt_dl_register(struct bnxt *bp)
sizeof(bp->dsn)); sizeof(bp->dsn));
rc = devlink_port_register(dl, &bp->dl_port, bp->pf.port_id); rc = devlink_port_register(dl, &bp->dl_port, bp->pf.port_id);
if (rc) { if (rc) {
netdev_err(bp->dev, "devlink_port_register failed"); netdev_err(bp->dev, "devlink_port_register failed\n");
goto err_dl_unreg; goto err_dl_unreg;
} }
......
...@@ -2028,7 +2028,7 @@ int bnxt_flash_package_from_file(struct net_device *dev, const char *filename, ...@@ -2028,7 +2028,7 @@ int bnxt_flash_package_from_file(struct net_device *dev, const char *filename,
} }
if (fw->size > item_len) { if (fw->size > item_len) {
netdev_err(dev, "PKG insufficient update area in nvram: %lu", netdev_err(dev, "PKG insufficient update area in nvram: %lu\n",
(unsigned long)fw->size); (unsigned long)fw->size);
rc = -EFBIG; rc = -EFBIG;
} else { } else {
...@@ -3338,7 +3338,7 @@ static int bnxt_get_coredump(struct bnxt *bp, void *buf, u32 *dump_len) ...@@ -3338,7 +3338,7 @@ static int bnxt_get_coredump(struct bnxt *bp, void *buf, u32 *dump_len)
kfree(coredump.data); kfree(coredump.data);
*dump_len += sizeof(struct bnxt_coredump_record); *dump_len += sizeof(struct bnxt_coredump_record);
if (rc == -ENOBUFS) if (rc == -ENOBUFS)
netdev_err(bp->dev, "Firmware returned large coredump buffer"); netdev_err(bp->dev, "Firmware returned large coredump buffer\n");
return rc; return rc;
} }
......
...@@ -50,7 +50,7 @@ static u16 bnxt_flow_get_dst_fid(struct bnxt *pf_bp, struct net_device *dev) ...@@ -50,7 +50,7 @@ static u16 bnxt_flow_get_dst_fid(struct bnxt *pf_bp, struct net_device *dev)
/* check if dev belongs to the same switch */ /* check if dev belongs to the same switch */
if (!netdev_port_same_parent_id(pf_bp->dev, dev)) { if (!netdev_port_same_parent_id(pf_bp->dev, dev)) {
netdev_info(pf_bp->dev, "dev(ifindex=%d) not on same switch", netdev_info(pf_bp->dev, "dev(ifindex=%d) not on same switch\n",
dev->ifindex); dev->ifindex);
return BNXT_FID_INVALID; return BNXT_FID_INVALID;
} }
...@@ -70,7 +70,7 @@ static int bnxt_tc_parse_redir(struct bnxt *bp, ...@@ -70,7 +70,7 @@ static int bnxt_tc_parse_redir(struct bnxt *bp,
struct net_device *dev = act->dev; struct net_device *dev = act->dev;
if (!dev) { if (!dev) {
netdev_info(bp->dev, "no dev in mirred action"); netdev_info(bp->dev, "no dev in mirred action\n");
return -EINVAL; return -EINVAL;
} }
...@@ -106,7 +106,7 @@ static int bnxt_tc_parse_tunnel_set(struct bnxt *bp, ...@@ -106,7 +106,7 @@ static int bnxt_tc_parse_tunnel_set(struct bnxt *bp,
const struct ip_tunnel_key *tun_key = &tun_info->key; const struct ip_tunnel_key *tun_key = &tun_info->key;
if (ip_tunnel_info_af(tun_info) != AF_INET) { if (ip_tunnel_info_af(tun_info) != AF_INET) {
netdev_info(bp->dev, "only IPv4 tunnel-encap is supported"); netdev_info(bp->dev, "only IPv4 tunnel-encap is supported\n");
return -EOPNOTSUPP; return -EOPNOTSUPP;
} }
...@@ -295,7 +295,7 @@ static int bnxt_tc_parse_actions(struct bnxt *bp, ...@@ -295,7 +295,7 @@ static int bnxt_tc_parse_actions(struct bnxt *bp,
int i, rc; int i, rc;
if (!flow_action_has_entries(flow_action)) { if (!flow_action_has_entries(flow_action)) {
netdev_info(bp->dev, "no actions"); netdev_info(bp->dev, "no actions\n");
return -EINVAL; return -EINVAL;
} }
...@@ -370,7 +370,7 @@ static int bnxt_tc_parse_flow(struct bnxt *bp, ...@@ -370,7 +370,7 @@ static int bnxt_tc_parse_flow(struct bnxt *bp,
/* KEY_CONTROL and KEY_BASIC are needed for forming a meaningful key */ /* KEY_CONTROL and KEY_BASIC are needed for forming a meaningful key */
if ((dissector->used_keys & BIT(FLOW_DISSECTOR_KEY_CONTROL)) == 0 || if ((dissector->used_keys & BIT(FLOW_DISSECTOR_KEY_CONTROL)) == 0 ||
(dissector->used_keys & BIT(FLOW_DISSECTOR_KEY_BASIC)) == 0) { (dissector->used_keys & BIT(FLOW_DISSECTOR_KEY_BASIC)) == 0) {
netdev_info(bp->dev, "cannot form TC key: used_keys = 0x%x", netdev_info(bp->dev, "cannot form TC key: used_keys = 0x%x\n",
dissector->used_keys); dissector->used_keys);
return -EOPNOTSUPP; return -EOPNOTSUPP;
} }
...@@ -508,7 +508,7 @@ static int bnxt_hwrm_cfa_flow_free(struct bnxt *bp, ...@@ -508,7 +508,7 @@ static int bnxt_hwrm_cfa_flow_free(struct bnxt *bp,
rc = hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT); rc = hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT);
if (rc) if (rc)
netdev_info(bp->dev, "%s: Error rc=%d", __func__, rc); netdev_info(bp->dev, "%s: Error rc=%d\n", __func__, rc);
return rc; return rc;
} }
...@@ -841,7 +841,7 @@ static int hwrm_cfa_decap_filter_alloc(struct bnxt *bp, ...@@ -841,7 +841,7 @@ static int hwrm_cfa_decap_filter_alloc(struct bnxt *bp,
resp = bnxt_get_hwrm_resp_addr(bp, &req); resp = bnxt_get_hwrm_resp_addr(bp, &req);
*decap_filter_handle = resp->decap_filter_id; *decap_filter_handle = resp->decap_filter_id;
} else { } else {
netdev_info(bp->dev, "%s: Error rc=%d", __func__, rc); netdev_info(bp->dev, "%s: Error rc=%d\n", __func__, rc);
} }
mutex_unlock(&bp->hwrm_cmd_lock); mutex_unlock(&bp->hwrm_cmd_lock);
...@@ -859,7 +859,7 @@ static int hwrm_cfa_decap_filter_free(struct bnxt *bp, ...@@ -859,7 +859,7 @@ static int hwrm_cfa_decap_filter_free(struct bnxt *bp,
rc = hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT); rc = hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT);
if (rc) if (rc)
netdev_info(bp->dev, "%s: Error rc=%d", __func__, rc); netdev_info(bp->dev, "%s: Error rc=%d\n", __func__, rc);
return rc; return rc;
} }
...@@ -906,7 +906,7 @@ static int hwrm_cfa_encap_record_alloc(struct bnxt *bp, ...@@ -906,7 +906,7 @@ static int hwrm_cfa_encap_record_alloc(struct bnxt *bp,
resp = bnxt_get_hwrm_resp_addr(bp, &req); resp = bnxt_get_hwrm_resp_addr(bp, &req);
*encap_record_handle = resp->encap_record_id; *encap_record_handle = resp->encap_record_id;
} else { } else {
netdev_info(bp->dev, "%s: Error rc=%d", __func__, rc); netdev_info(bp->dev, "%s: Error rc=%d\n", __func__, rc);
} }
mutex_unlock(&bp->hwrm_cmd_lock); mutex_unlock(&bp->hwrm_cmd_lock);
...@@ -924,7 +924,7 @@ static int hwrm_cfa_encap_record_free(struct bnxt *bp, ...@@ -924,7 +924,7 @@ static int hwrm_cfa_encap_record_free(struct bnxt *bp,
rc = hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT); rc = hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT);
if (rc) if (rc)
netdev_info(bp->dev, "%s: Error rc=%d", __func__, rc); netdev_info(bp->dev, "%s: Error rc=%d\n", __func__, rc);
return rc; return rc;
} }
...@@ -943,7 +943,7 @@ static int bnxt_tc_put_l2_node(struct bnxt *bp, ...@@ -943,7 +943,7 @@ static int bnxt_tc_put_l2_node(struct bnxt *bp,
tc_info->l2_ht_params); tc_info->l2_ht_params);
if (rc) if (rc)
netdev_err(bp->dev, netdev_err(bp->dev,
"Error: %s: rhashtable_remove_fast: %d", "Error: %s: rhashtable_remove_fast: %d\n",
__func__, rc); __func__, rc);
kfree_rcu(l2_node, rcu); kfree_rcu(l2_node, rcu);
} }
...@@ -972,7 +972,7 @@ bnxt_tc_get_l2_node(struct bnxt *bp, struct rhashtable *l2_table, ...@@ -972,7 +972,7 @@ bnxt_tc_get_l2_node(struct bnxt *bp, struct rhashtable *l2_table,
if (rc) { if (rc) {
kfree_rcu(l2_node, rcu); kfree_rcu(l2_node, rcu);
netdev_err(bp->dev, netdev_err(bp->dev,
"Error: %s: rhashtable_insert_fast: %d", "Error: %s: rhashtable_insert_fast: %d\n",
__func__, rc); __func__, rc);
return NULL; return NULL;
} }
...@@ -1031,7 +1031,7 @@ static bool bnxt_tc_can_offload(struct bnxt *bp, struct bnxt_tc_flow *flow) ...@@ -1031,7 +1031,7 @@ static bool bnxt_tc_can_offload(struct bnxt *bp, struct bnxt_tc_flow *flow)
if ((flow->flags & BNXT_TC_FLOW_FLAGS_PORTS) && if ((flow->flags & BNXT_TC_FLOW_FLAGS_PORTS) &&
(flow->l4_key.ip_proto != IPPROTO_TCP && (flow->l4_key.ip_proto != IPPROTO_TCP &&
flow->l4_key.ip_proto != IPPROTO_UDP)) { flow->l4_key.ip_proto != IPPROTO_UDP)) {
netdev_info(bp->dev, "Cannot offload non-TCP/UDP (%d) ports", netdev_info(bp->dev, "Cannot offload non-TCP/UDP (%d) ports\n",
flow->l4_key.ip_proto); flow->l4_key.ip_proto);
return false; return false;
} }
...@@ -1088,7 +1088,7 @@ static int bnxt_tc_put_tunnel_node(struct bnxt *bp, ...@@ -1088,7 +1088,7 @@ static int bnxt_tc_put_tunnel_node(struct bnxt *bp,
rc = rhashtable_remove_fast(tunnel_table, &tunnel_node->node, rc = rhashtable_remove_fast(tunnel_table, &tunnel_node->node,
*ht_params); *ht_params);
if (rc) { if (rc) {
netdev_err(bp->dev, "rhashtable_remove_fast rc=%d", rc); netdev_err(bp->dev, "rhashtable_remove_fast rc=%d\n", rc);
rc = -1; rc = -1;
} }
kfree_rcu(tunnel_node, rcu); kfree_rcu(tunnel_node, rcu);
...@@ -1129,7 +1129,7 @@ bnxt_tc_get_tunnel_node(struct bnxt *bp, struct rhashtable *tunnel_table, ...@@ -1129,7 +1129,7 @@ bnxt_tc_get_tunnel_node(struct bnxt *bp, struct rhashtable *tunnel_table,
tunnel_node->refcount++; tunnel_node->refcount++;
return tunnel_node; return tunnel_node;
err: err:
netdev_info(bp->dev, "error rc=%d", rc); netdev_info(bp->dev, "error rc=%d\n", rc);
return NULL; return NULL;
} }
...@@ -1187,7 +1187,7 @@ static void bnxt_tc_put_decap_l2_node(struct bnxt *bp, ...@@ -1187,7 +1187,7 @@ static void bnxt_tc_put_decap_l2_node(struct bnxt *bp,
&decap_l2_node->node, &decap_l2_node->node,
tc_info->decap_l2_ht_params); tc_info->decap_l2_ht_params);
if (rc) if (rc)
netdev_err(bp->dev, "rhashtable_remove_fast rc=%d", rc); netdev_err(bp->dev, "rhashtable_remove_fast rc=%d\n", rc);
kfree_rcu(decap_l2_node, rcu); kfree_rcu(decap_l2_node, rcu);
} }
} }
...@@ -1227,7 +1227,7 @@ static int bnxt_tc_resolve_tunnel_hdrs(struct bnxt *bp, ...@@ -1227,7 +1227,7 @@ static int bnxt_tc_resolve_tunnel_hdrs(struct bnxt *bp,
rt = ip_route_output_key(dev_net(real_dst_dev), &flow); rt = ip_route_output_key(dev_net(real_dst_dev), &flow);
if (IS_ERR(rt)) { if (IS_ERR(rt)) {
netdev_info(bp->dev, "no route to %pI4b", &flow.daddr); netdev_info(bp->dev, "no route to %pI4b\n", &flow.daddr);
return -EOPNOTSUPP; return -EOPNOTSUPP;
} }
...@@ -1241,7 +1241,7 @@ static int bnxt_tc_resolve_tunnel_hdrs(struct bnxt *bp, ...@@ -1241,7 +1241,7 @@ static int bnxt_tc_resolve_tunnel_hdrs(struct bnxt *bp,
if (vlan->real_dev != real_dst_dev) { if (vlan->real_dev != real_dst_dev) {
netdev_info(bp->dev, netdev_info(bp->dev,
"dst_dev(%s) doesn't use PF-if(%s)", "dst_dev(%s) doesn't use PF-if(%s)\n",
netdev_name(dst_dev), netdev_name(dst_dev),
netdev_name(real_dst_dev)); netdev_name(real_dst_dev));
rc = -EOPNOTSUPP; rc = -EOPNOTSUPP;
...@@ -1253,7 +1253,7 @@ static int bnxt_tc_resolve_tunnel_hdrs(struct bnxt *bp, ...@@ -1253,7 +1253,7 @@ static int bnxt_tc_resolve_tunnel_hdrs(struct bnxt *bp,
#endif #endif
} else if (dst_dev != real_dst_dev) { } else if (dst_dev != real_dst_dev) {
netdev_info(bp->dev, netdev_info(bp->dev,
"dst_dev(%s) for %pI4b is not PF-if(%s)", "dst_dev(%s) for %pI4b is not PF-if(%s)\n",
netdev_name(dst_dev), &flow.daddr, netdev_name(dst_dev), &flow.daddr,
netdev_name(real_dst_dev)); netdev_name(real_dst_dev));
rc = -EOPNOTSUPP; rc = -EOPNOTSUPP;
...@@ -1262,7 +1262,7 @@ static int bnxt_tc_resolve_tunnel_hdrs(struct bnxt *bp, ...@@ -1262,7 +1262,7 @@ static int bnxt_tc_resolve_tunnel_hdrs(struct bnxt *bp,
nbr = dst_neigh_lookup(&rt->dst, &flow.daddr); nbr = dst_neigh_lookup(&rt->dst, &flow.daddr);
if (!nbr) { if (!nbr) {
netdev_info(bp->dev, "can't lookup neighbor for %pI4b", netdev_info(bp->dev, "can't lookup neighbor for %pI4b\n",
&flow.daddr); &flow.daddr);
rc = -EOPNOTSUPP; rc = -EOPNOTSUPP;
goto put_rt; goto put_rt;
...@@ -1472,7 +1472,7 @@ static int __bnxt_tc_del_flow(struct bnxt *bp, ...@@ -1472,7 +1472,7 @@ static int __bnxt_tc_del_flow(struct bnxt *bp,
rc = rhashtable_remove_fast(&tc_info->flow_table, &flow_node->node, rc = rhashtable_remove_fast(&tc_info->flow_table, &flow_node->node,
tc_info->flow_ht_params); tc_info->flow_ht_params);
if (rc) if (rc)
netdev_err(bp->dev, "Error: %s: rhashtable_remove_fast rc=%d", netdev_err(bp->dev, "Error: %s: rhashtable_remove_fast rc=%d\n",
__func__, rc); __func__, rc);
kfree_rcu(flow_node, rcu); kfree_rcu(flow_node, rcu);
...@@ -1587,7 +1587,7 @@ static int bnxt_tc_add_flow(struct bnxt *bp, u16 src_fid, ...@@ -1587,7 +1587,7 @@ static int bnxt_tc_add_flow(struct bnxt *bp, u16 src_fid,
free_node: free_node:
kfree_rcu(new_node, rcu); kfree_rcu(new_node, rcu);
done: done:
netdev_err(bp->dev, "Error: %s: cookie=0x%lx error=%d", netdev_err(bp->dev, "Error: %s: cookie=0x%lx error=%d\n",
__func__, tc_flow_cmd->cookie, rc); __func__, tc_flow_cmd->cookie, rc);
return rc; return rc;
} }
...@@ -1700,7 +1700,7 @@ bnxt_hwrm_cfa_flow_stats_get(struct bnxt *bp, int num_flows, ...@@ -1700,7 +1700,7 @@ bnxt_hwrm_cfa_flow_stats_get(struct bnxt *bp, int num_flows,
le64_to_cpu(resp_bytes[i]); le64_to_cpu(resp_bytes[i]);
} }
} else { } else {
netdev_info(bp->dev, "error rc=%d", rc); netdev_info(bp->dev, "error rc=%d\n", rc);
} }
mutex_unlock(&bp->hwrm_cmd_lock); mutex_unlock(&bp->hwrm_cmd_lock);
...@@ -1970,7 +1970,7 @@ static int bnxt_tc_indr_block_event(struct notifier_block *nb, ...@@ -1970,7 +1970,7 @@ static int bnxt_tc_indr_block_event(struct notifier_block *nb,
bp); bp);
if (rc) if (rc)
netdev_info(bp->dev, netdev_info(bp->dev,
"Failed to register indirect blk: dev: %s", "Failed to register indirect blk: dev: %s\n",
netdev->name); netdev->name);
break; break;
case NETDEV_UNREGISTER: case NETDEV_UNREGISTER:
......
...@@ -43,7 +43,7 @@ static int hwrm_cfa_vfr_alloc(struct bnxt *bp, u16 vf_idx, ...@@ -43,7 +43,7 @@ static int hwrm_cfa_vfr_alloc(struct bnxt *bp, u16 vf_idx,
netdev_dbg(bp->dev, "tx_cfa_action=0x%x, rx_cfa_code=0x%x", netdev_dbg(bp->dev, "tx_cfa_action=0x%x, rx_cfa_code=0x%x",
*tx_cfa_action, *rx_cfa_code); *tx_cfa_action, *rx_cfa_code);
} else { } else {
netdev_info(bp->dev, "%s error rc=%d", __func__, rc); netdev_info(bp->dev, "%s error rc=%d\n", __func__, rc);
} }
mutex_unlock(&bp->hwrm_cmd_lock); mutex_unlock(&bp->hwrm_cmd_lock);
...@@ -60,7 +60,7 @@ static int hwrm_cfa_vfr_free(struct bnxt *bp, u16 vf_idx) ...@@ -60,7 +60,7 @@ static int hwrm_cfa_vfr_free(struct bnxt *bp, u16 vf_idx)
rc = hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT); rc = hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT);
if (rc) if (rc)
netdev_info(bp->dev, "%s error rc=%d", __func__, rc); netdev_info(bp->dev, "%s error rc=%d\n", __func__, rc);
return rc; return rc;
} }
...@@ -465,7 +465,7 @@ static int bnxt_vf_reps_create(struct bnxt *bp) ...@@ -465,7 +465,7 @@ static int bnxt_vf_reps_create(struct bnxt *bp)
return 0; return 0;
err: err:
netdev_info(bp->dev, "%s error=%d", __func__, rc); netdev_info(bp->dev, "%s error=%d\n", __func__, rc);
kfree(cfa_code_map); kfree(cfa_code_map);
__bnxt_vf_reps_destroy(bp); __bnxt_vf_reps_destroy(bp);
return rc; return rc;
...@@ -488,7 +488,7 @@ int bnxt_dl_eswitch_mode_set(struct devlink *devlink, u16 mode, ...@@ -488,7 +488,7 @@ int bnxt_dl_eswitch_mode_set(struct devlink *devlink, u16 mode,
mutex_lock(&bp->sriov_lock); mutex_lock(&bp->sriov_lock);
if (bp->eswitch_mode == mode) { if (bp->eswitch_mode == mode) {
netdev_info(bp->dev, "already in %s eswitch mode", netdev_info(bp->dev, "already in %s eswitch mode\n",
mode == DEVLINK_ESWITCH_MODE_LEGACY ? mode == DEVLINK_ESWITCH_MODE_LEGACY ?
"legacy" : "switchdev"); "legacy" : "switchdev");
rc = -EINVAL; rc = -EINVAL;
...@@ -508,7 +508,7 @@ int bnxt_dl_eswitch_mode_set(struct devlink *devlink, u16 mode, ...@@ -508,7 +508,7 @@ int bnxt_dl_eswitch_mode_set(struct devlink *devlink, u16 mode,
} }
if (pci_num_vf(bp->pdev) == 0) { if (pci_num_vf(bp->pdev) == 0) {
netdev_info(bp->dev, "Enable VFs before setting switchdev mode"); netdev_info(bp->dev, "Enable VFs before setting switchdev mode\n");
rc = -EPERM; rc = -EPERM;
goto done; goto done;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment