@@ -1227,7 +1227,7 @@ const struct ksz_chip_data ksz_switch_chips[] = {
12271227 .port_cnt = 3 , /* total port count */
12281228 .port_nirqs = 3 ,
12291229 .num_tx_queues = 4 ,
1230- .num_ipvs = 8 ,
1230+ .num_ipms = 8 ,
12311231 .tc_cbs_supported = true,
12321232 .ops = & ksz9477_dev_ops ,
12331233 .phylink_mac_ops = & ksz9477_phylink_mac_ops ,
@@ -1257,7 +1257,7 @@ const struct ksz_chip_data ksz_switch_chips[] = {
12571257 .cpu_ports = 0x10 , /* can be configured as cpu port */
12581258 .port_cnt = 5 , /* total cpu and user ports */
12591259 .num_tx_queues = 4 ,
1260- .num_ipvs = 4 ,
1260+ .num_ipms = 4 ,
12611261 .ops = & ksz8_dev_ops ,
12621262 .phylink_mac_ops = & ksz8_phylink_mac_ops ,
12631263 .ksz87xx_eee_link_erratum = true,
@@ -1298,7 +1298,7 @@ const struct ksz_chip_data ksz_switch_chips[] = {
12981298 .cpu_ports = 0x10 , /* can be configured as cpu port */
12991299 .port_cnt = 5 , /* total cpu and user ports */
13001300 .num_tx_queues = 4 ,
1301- .num_ipvs = 4 ,
1301+ .num_ipms = 4 ,
13021302 .ops = & ksz8_dev_ops ,
13031303 .phylink_mac_ops = & ksz8_phylink_mac_ops ,
13041304 .ksz87xx_eee_link_erratum = true,
@@ -1325,7 +1325,7 @@ const struct ksz_chip_data ksz_switch_chips[] = {
13251325 .cpu_ports = 0x10 , /* can be configured as cpu port */
13261326 .port_cnt = 5 , /* total cpu and user ports */
13271327 .num_tx_queues = 4 ,
1328- .num_ipvs = 4 ,
1328+ .num_ipms = 4 ,
13291329 .ops = & ksz8_dev_ops ,
13301330 .phylink_mac_ops = & ksz8_phylink_mac_ops ,
13311331 .ksz87xx_eee_link_erratum = true,
@@ -1352,7 +1352,7 @@ const struct ksz_chip_data ksz_switch_chips[] = {
13521352 .cpu_ports = 0x4 , /* can be configured as cpu port */
13531353 .port_cnt = 3 ,
13541354 .num_tx_queues = 4 ,
1355- .num_ipvs = 4 ,
1355+ .num_ipms = 4 ,
13561356 .ops = & ksz8_dev_ops ,
13571357 .phylink_mac_ops = & ksz8830_phylink_mac_ops ,
13581358 .mib_names = ksz88xx_mib_names ,
@@ -1378,7 +1378,7 @@ const struct ksz_chip_data ksz_switch_chips[] = {
13781378 .port_cnt = 7 , /* total physical port count */
13791379 .port_nirqs = 4 ,
13801380 .num_tx_queues = 4 ,
1381- .num_ipvs = 8 ,
1381+ .num_ipms = 8 ,
13821382 .tc_cbs_supported = true,
13831383 .ops = & ksz9477_dev_ops ,
13841384 .phylink_mac_ops = & ksz9477_phylink_mac_ops ,
@@ -1413,7 +1413,7 @@ const struct ksz_chip_data ksz_switch_chips[] = {
14131413 .port_cnt = 6 , /* total physical port count */
14141414 .port_nirqs = 2 ,
14151415 .num_tx_queues = 4 ,
1416- .num_ipvs = 8 ,
1416+ .num_ipms = 8 ,
14171417 .ops = & ksz9477_dev_ops ,
14181418 .phylink_mac_ops = & ksz9477_phylink_mac_ops ,
14191419 .mib_names = ksz9477_mib_names ,
@@ -1447,7 +1447,7 @@ const struct ksz_chip_data ksz_switch_chips[] = {
14471447 .port_cnt = 7 , /* total physical port count */
14481448 .port_nirqs = 2 ,
14491449 .num_tx_queues = 4 ,
1450- .num_ipvs = 8 ,
1450+ .num_ipms = 8 ,
14511451 .ops = & ksz9477_dev_ops ,
14521452 .phylink_mac_ops = & ksz9477_phylink_mac_ops ,
14531453 .mib_names = ksz9477_mib_names ,
@@ -1479,7 +1479,7 @@ const struct ksz_chip_data ksz_switch_chips[] = {
14791479 .port_cnt = 3 , /* total port count */
14801480 .port_nirqs = 2 ,
14811481 .num_tx_queues = 4 ,
1482- .num_ipvs = 8 ,
1482+ .num_ipms = 8 ,
14831483 .ops = & ksz9477_dev_ops ,
14841484 .phylink_mac_ops = & ksz9477_phylink_mac_ops ,
14851485 .mib_names = ksz9477_mib_names ,
@@ -1507,7 +1507,7 @@ const struct ksz_chip_data ksz_switch_chips[] = {
15071507 .port_cnt = 3 , /* total port count */
15081508 .port_nirqs = 3 ,
15091509 .num_tx_queues = 4 ,
1510- .num_ipvs = 8 ,
1510+ .num_ipms = 8 ,
15111511 .tc_cbs_supported = true,
15121512 .ops = & ksz9477_dev_ops ,
15131513 .phylink_mac_ops = & ksz9477_phylink_mac_ops ,
@@ -1536,7 +1536,7 @@ const struct ksz_chip_data ksz_switch_chips[] = {
15361536 .port_cnt = 7 , /* total port count */
15371537 .port_nirqs = 3 ,
15381538 .num_tx_queues = 4 ,
1539- .num_ipvs = 8 ,
1539+ .num_ipms = 8 ,
15401540 .tc_cbs_supported = true,
15411541 .ops = & ksz9477_dev_ops ,
15421542 .phylink_mac_ops = & ksz9477_phylink_mac_ops ,
@@ -1570,7 +1570,7 @@ const struct ksz_chip_data ksz_switch_chips[] = {
15701570 .port_cnt = 7 , /* total physical port count */
15711571 .port_nirqs = 3 ,
15721572 .num_tx_queues = 4 ,
1573- .num_ipvs = 8 ,
1573+ .num_ipms = 8 ,
15741574 .tc_cbs_supported = true,
15751575 .ops = & ksz9477_dev_ops ,
15761576 .mib_names = ksz9477_mib_names ,
@@ -1602,7 +1602,7 @@ const struct ksz_chip_data ksz_switch_chips[] = {
16021602 .port_cnt = 5 , /* total physical port count */
16031603 .port_nirqs = 6 ,
16041604 .num_tx_queues = 8 ,
1605- .num_ipvs = 8 ,
1605+ .num_ipms = 8 ,
16061606 .tc_cbs_supported = true,
16071607 .ops = & lan937x_dev_ops ,
16081608 .phylink_mac_ops = & lan937x_phylink_mac_ops ,
@@ -1630,7 +1630,7 @@ const struct ksz_chip_data ksz_switch_chips[] = {
16301630 .port_cnt = 6 , /* total physical port count */
16311631 .port_nirqs = 6 ,
16321632 .num_tx_queues = 8 ,
1633- .num_ipvs = 8 ,
1633+ .num_ipms = 8 ,
16341634 .tc_cbs_supported = true,
16351635 .ops = & lan937x_dev_ops ,
16361636 .phylink_mac_ops = & lan937x_phylink_mac_ops ,
@@ -1658,7 +1658,7 @@ const struct ksz_chip_data ksz_switch_chips[] = {
16581658 .port_cnt = 8 , /* total physical port count */
16591659 .port_nirqs = 6 ,
16601660 .num_tx_queues = 8 ,
1661- .num_ipvs = 8 ,
1661+ .num_ipms = 8 ,
16621662 .tc_cbs_supported = true,
16631663 .ops = & lan937x_dev_ops ,
16641664 .phylink_mac_ops = & lan937x_phylink_mac_ops ,
@@ -1690,7 +1690,7 @@ const struct ksz_chip_data ksz_switch_chips[] = {
16901690 .port_cnt = 5 , /* total physical port count */
16911691 .port_nirqs = 6 ,
16921692 .num_tx_queues = 8 ,
1693- .num_ipvs = 8 ,
1693+ .num_ipms = 8 ,
16941694 .tc_cbs_supported = true,
16951695 .ops = & lan937x_dev_ops ,
16961696 .phylink_mac_ops = & lan937x_phylink_mac_ops ,
@@ -1722,7 +1722,7 @@ const struct ksz_chip_data ksz_switch_chips[] = {
17221722 .port_cnt = 8 , /* total physical port count */
17231723 .port_nirqs = 6 ,
17241724 .num_tx_queues = 8 ,
1725- .num_ipvs = 8 ,
1725+ .num_ipms = 8 ,
17261726 .tc_cbs_supported = true,
17271727 .ops = & lan937x_dev_ops ,
17281728 .phylink_mac_ops = & lan937x_phylink_mac_ops ,
@@ -2726,20 +2726,20 @@ static int ksz9477_set_default_prio_queue_mapping(struct ksz_device *dev,
27262726 int port )
27272727{
27282728 u32 queue_map = 0 ;
2729- int ipv ;
2729+ int ipm ;
27302730
2731- for (ipv = 0 ; ipv < dev -> info -> num_ipvs ; ipv ++ ) {
2731+ for (ipm = 0 ; ipm < dev -> info -> num_ipms ; ipm ++ ) {
27322732 int queue ;
27332733
27342734 /* Traffic Type (TT) is corresponding to the Internal Priority
2735- * Value (IPV ) in the switch. Traffic Class (TC) is
2735+ * Map (IPM ) in the switch. Traffic Class (TC) is
27362736 * corresponding to the queue in the switch.
27372737 */
2738- queue = ieee8021q_tt_to_tc (ipv , dev -> info -> num_tx_queues );
2738+ queue = ieee8021q_tt_to_tc (ipm , dev -> info -> num_tx_queues );
27392739 if (queue < 0 )
27402740 return queue ;
27412741
2742- queue_map |= queue << (ipv * KSZ9477_PORT_TC_MAP_S );
2742+ queue_map |= queue << (ipm * KSZ9477_PORT_TC_MAP_S );
27432743 }
27442744
27452745 return ksz_pwrite32 (dev , port , KSZ9477_PORT_MRI_TC_MAP__4 , queue_map );
@@ -3609,7 +3609,7 @@ static int ksz_tc_ets_add(struct ksz_device *dev, int port,
36093609 for (tc_prio = 0 ; tc_prio < ARRAY_SIZE (p -> priomap ); tc_prio ++ ) {
36103610 int queue ;
36113611
3612- if (tc_prio >= dev -> info -> num_ipvs )
3612+ if (tc_prio >= dev -> info -> num_ipms )
36133613 break ;
36143614
36153615 queue = ksz_ets_band_to_queue (p , p -> priomap [tc_prio ]);
0 commit comments