hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/net/ethernet/intel/ixgbevf/vf.c
....@@ -309,11 +309,12 @@
309309 * is not supported for this device type.
310310 */
311311 switch (hw->api_version) {
312
+ case ixgbe_mbox_api_14:
312313 case ixgbe_mbox_api_13:
313314 case ixgbe_mbox_api_12:
314315 if (hw->mac.type < ixgbe_mac_X550_vf)
315316 break;
316
- /* fall through */
317
+ fallthrough;
317318 default:
318319 return -EOPNOTSUPP;
319320 }
....@@ -376,11 +377,12 @@
376377 * or if the operation is not supported for this device type.
377378 */
378379 switch (hw->api_version) {
380
+ case ixgbe_mbox_api_14:
379381 case ixgbe_mbox_api_13:
380382 case ixgbe_mbox_api_12:
381383 if (hw->mac.type < ixgbe_mac_X550_vf)
382384 break;
383
- /* fall through */
385
+ fallthrough;
384386 default:
385387 return -EOPNOTSUPP;
386388 }
....@@ -506,9 +508,8 @@
506508 vector_list[i++] = ixgbevf_mta_vector(hw, ha->addr);
507509 }
508510
509
- ixgbevf_write_msg_read_ack(hw, msgbuf, msgbuf, IXGBE_VFMAILBOX_SIZE);
510
-
511
- return 0;
511
+ return ixgbevf_write_msg_read_ack(hw, msgbuf, msgbuf,
512
+ IXGBE_VFMAILBOX_SIZE);
512513 }
513514
514515 /**
....@@ -539,7 +540,8 @@
539540 /* promisc introduced in 1.3 version */
540541 if (xcast_mode == IXGBEVF_XCAST_MODE_PROMISC)
541542 return -EOPNOTSUPP;
542
- /* Fall threw */
543
+ fallthrough;
544
+ case ixgbe_mbox_api_14:
543545 case ixgbe_mbox_api_13:
544546 break;
545547 default:
....@@ -890,6 +892,7 @@
890892 case ixgbe_mbox_api_11:
891893 case ixgbe_mbox_api_12:
892894 case ixgbe_mbox_api_13:
895
+ case ixgbe_mbox_api_14:
893896 break;
894897 default:
895898 return 0;