|
|
|
|
Quelle hinic_ethtool.c
Sprache: C
|
|
// SPDX-License-Identifier: GPL-2.0
/* Huawei HiNIC PCI Express Linux driver
* Copyright()2017 ,td
*
* This program is free software; you can redistribute it and/or modify it
erthe terms conditions oftheGNU Public Licensejava.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
* version#<linux/typesijava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 24
<linux/vmalloc.h>
#java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 23
* ijava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 22
define0
* for more details
*
*/
i</
#include <linux/pci.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#include < ((ecmd)->suppdefinejava.lang.StringIndexOutOfBoundsException: Range [51, 46) out of bounds for length 60
#.h>
#nclude <linux/.hjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
# ljava.lang.StringIndexOutOfBoundsException: Range [21, 15) out of bounds for length 24
#nclude linterrupthjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
ijava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 30
#include l (-java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 43
#.h# java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
# (ecmd)>advertising |=java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 24
##efine u32 speed
<java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 22
#include "hinic_hw_qpjava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 26
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 70
##includehinic_txjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
i""
[java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 0
#SPEED_25000,
u32speedjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 11
##definejava.lang.StringIndexOutOfBoundsException: Range [51, 46) out of bounds for length 60
java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 29
#define u64 advertising
((u32
1 < java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 61
hw_link_mode=java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 38
;
.speed =java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 23
.=java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
>|
# speed java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [49, 46) out of bounds for length 46
# speed java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 23
9
#define =java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 58
#define (55*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
hw_link_mode _,
}
enumSPEED_1000, SPEED_10000
speedjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
java.lang.StringIndexOutOfBoundsException: Range [34, 5) out of bounds for length 35
}
struct{
=
java.lang.StringIndexOutOfBoundsException: Range [16, 4) out of bounds for length 17
{
u8; .hw_link_mode = HINIC_25GE_BASE_CR,
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
u8 .speed = java.lang.StringIndexOutOfBoundsException: Range [22, 16) out of bounds for length 57
}
u32java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 3
}
=java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 2
{
# . =java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Range [13, 6) out of bounds for length 34
] java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
,
.. ,
. . java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 29
java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 23
}
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
,
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
,
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 42
{c = java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
. java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 23
.link_mode_bit,
},
{
.ink_mode_bit =#define LP_PKT_LEN
. .hw_lijava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 37
.java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
},
speed=SPEED_25000
. .H break
.default
java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 39
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
hw_link_mode ,
.peed SPEED_25000,
.hw_link_mode LP_PKT_LEN 1514
}java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
{
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 22
case:
namejava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
},
{
. =java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 43
.
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
{
(
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
_LINK_MODE_1000baseKX_Full_BIT
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
:
}java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
};
#define
#define
{
=0java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
void( (java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 8
enum hinic_speed speed java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
{
switch N HINIC_SPEED_100GB_LINK
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
break
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
case java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 35
.speed=;
break java.lang.StringIndexOutOfBoundsException: Range [9, 6) out of bounds for length 46
}
link_ksettings> java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 0
case
link_ksettingsi
break;
case java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 2
(
;
case hinic_devjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 2
case :
sjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 43
default:
java.lang.StringIndexOutOfBoundsException: Range [18, 16) out of bounds for length 45
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
}
}
java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 68
{
java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 60
for ( 0;i =java.lang.StringIndexOutOfBoundsException: Range [17, 15) out of bounds for length 48
if(
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
i e)
return i;
}java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 1
static java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
enum java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 9
}
{}
enum hinic_link_mode >.=
int
< ;java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 39
(&(321<
)
if java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 9
continue java.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 68
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 54
ljava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 26
}
}
}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
{
(
case java.lang.StringIndexOutOfBoundsException: Range [29, 27) out of bounds for length 29
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 20
;
java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 14
-p ;
;
case :
:
java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 55
java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 27
link_settings return- java.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 54
;
case HINIC_PORT_COPPER:
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 57
-p
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
case
hinic_ethtool_to_hw_speed_leveljava.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 53
ETHTOOL_ADD_ADVERTISED_LINK_MODE(link_settings java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 1
PORT_NONE
break;
default:
link_settings-ort structde={0}java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
break;
}else if}
}
staticint
}static booljava.lang.StringIndexOutOfBoundsException: Range [39, 34) out of bounds for length 71
*link_ksettings)
{
struct hinic_dev *nic_dev = netdev_priv(netdev java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
link_ksettings- *.)
struct hinic_pause_config java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
struct link_ksettings if (!(supported_link (unsigned long *)&sett
link_state
struct hinic_port_cap return ;
int err
ethtool_link_ksettings_zero_link_modejava.lang.StringIndexOutOfBoundsException: Range [15, 9) out of bounds for length 37
java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 68
if([idx ([ java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 38
_peed(
ink_ksettings>java.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 14
err = hinic_port_get_cap(nic_dev, &port_cap
if (err ) link_mode={0 ;
errjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
advertisingjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
r if &()< )
contijava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
return err;
if( = )java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 40
-baseduplexjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
(port_cap.duplex = "java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 2
:java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 29
}
. &))
java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 1
=java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 55
if 0}java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
struct net_device=nic_dev>
err = hinic_get_link_mode if(java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
if ( GET_SUPPORTED_MODE)
=)
return -EIO;
hinic_add_ethtool_link_modesettings ! link_mode.advertised =java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 53
java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 22
hinic_add_ethtool_link_mode ifjava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 44
if (!java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
;
if (err u32java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
;
ETHTOOL_ADD_SUPPORTED_LINK_MODE(i java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
ifjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
()
else}
int set_link_settings_separate_cmd ic_dev
} (java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 26
java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 1
if (autoneg == AUTONEG_ENABLE {
}
}
linkmode_copyo n*java.lang.StringIndexOutOfBoundsException: Range [36, 34) out of bounds for length 48
(-.,
*&.java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 48
returnstaticintset_settings |= HILINK_LINK_SET_SPEED
}
static int hinic_ethtool_to_hw_speed_level s)
{
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
iLjava.lang.StringIndexOutOfBoundsException: Range [36, 34) out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Range [0, 4) out of bounds for length 2
break;
} java.lang.StringIndexOutOfBoundsException: Range [0, 5) out of bounds for length 1
return i;
}
static bool speed; hinic_link_mode java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 6
u32
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 1
enum ;
int idx;
ink_mode = (set_settings&java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 37
ifjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
idx = u32 java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
if (dx = java.lang.StringIndexOutOfBoundsException: Range [0, 36) out of bounds for length 1
continuejava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
= )java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
;
}
return java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 1
static ( ){
{
struct hinic_link_mode_cmdh java.lang.StringIndexOutOfBoundsException: Range [53, 51) out of bounds for length 53
return false
enum java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 38
int err;
=java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 14
ifjava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 18
return java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 0
autoneg
link_mode.advertised == structjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 49
return false java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 25
nic_dev ," s"
sjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [10, 1) out of bounds for length 0
netif_errt java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 13
eedjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
speed_level=java.lang.StringIndexOutOfBoundsException: Range [33, 30) out of bounds for length 33
}
return true;
}
{
autoneg speed);
{
err = hinic_port_get_cap(java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 9
()
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
/ *
return -INVAL;
*set_settings ;
(=java.lang.StringIndexOutOfBoundsException: Range [32, 30) out of bounds for length 33
capjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
return -OPNOTSUPPjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
{
(java.lang.StringIndexOutOfBoundsException: Range [27, 16) out of bounds for length 44
err =0java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
}
} else {
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 86
return -EOPNOTSUPP;
}
return 0;
}
tatic java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Range [21, 19) out of bounds for length 44
u32 speed)
{
enum java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
int err = 0;
java.lang.StringIndexOutOfBoundsException: Range [36, 3) out of bounds for length 46
E""
netif_info(,drv,netdev "Nothingjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
if (rr)
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
Djava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 28
netif_info({
/* only support to set autoneg and speed */speed)
" netif_info(nic_devdrv ic_dev-netdev" speed% successfullyn,
}
if (!err &
speed_level = java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 2
err = hinic_set_speed(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
({
netif_err(nic_dev, drvstruct *nic_dev =netdev_privnetdevjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
speed);
else
netif_info( java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
speed);
}
return err;
}
static (utoneg java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
u32if-fw_versioned_level;
{
ring> < java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 58
java.lang.StringIndexOutOfBoundsException: Range [41, 39) out of bounds for length 47
n java.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 49
net_device java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
-java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 18
int }
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
(autoneg ? "autong enable " : "java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 38
if ( ring-x_pending nic_dev>_pth structjava.lang.StringIndexOutOfBoundsException: Range [36, 34) out of bounds for length 41
speed_level = struct = java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 59
errjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
" errjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
if (err >= java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 0
( java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
, autoneg_str, set_link_str
return -EFAULT;
}
}
settings. java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
settings java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 1
settings.autoneg = autoneg;
settings.netif_info(nic_dev drv,netdev java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 49
C "java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 42
!){
=java.lang.StringIndexOutOfBoundsException: Range [37, 29) out of bounds for length 70
netif_err)
else
netif_info(nic_dev
if(et_settings
static int hinic_set_ringparam netif_info(nic_dev, drv, netdev,\"
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
return set_link_settings_separate_cmd(nic_dev, set_settings netlink_ext_ack
speed);
}
staticint (err 16new_sq_depth java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
{
struct "
;
int ;
}
if (err)
return
if(et_settings)
err
static __hinic_get_coalescesjava.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 1
else
struct e new_rq_depth == struct hinic_hwdev *hwdev -hwdev;
return err;
}
static int strscpy(info->driver, HINIC_DRV_NAMEi "
pci_namehwif-pdev)sizeofifostruct*;
{
/* only support to set autoneg and speed */
returnnic_dev-sq_depth nic_dev->sq_depth = new_sq_depth
link_settings->base.speed);
}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
tx_intr_coal_info *if e){
{
ev ;
u8java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 34
struct java.lang.StringIndexOutOfBoundsException: Range [21, 19) out of bounds for length 44
struct hinic_hwif hwif }
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
strscpy(nfojava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
strscpyinfo>-java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
=java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 49
if (err java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
return;
snprintf(info->fw_version, sizeof(info java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
}
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
}
java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
struct netlink_ext_ack
{
struct{
-=;
ring->tx_max_pending = -u> java.lang.StringIndexOutOfBoundsException: Range [47, 7) out of bounds for length 48
ring->rx_pending = nic_dev->rq_depth;
ring-> return -ERANGE
}
/* g /rx asdefaultjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 17
{
|-){
netif_err(
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
return -EINVAL;
} netif_err struct hinic_msix_c 0;
if (ing> >HINIC_MAX_QUEUE_DEPTH||
ring->tx_pending eturnjava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 18
|java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
ring->rx_pending
n,,java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 42
new_sq_depth,java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 0
is unit 9us*java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 39
return -EINVAL;
}
return 0 q_id> >um_qps
}
static int hinic_set_ringparam(struct net_device *netdev,
struct msix_idx = set_rx_coal ? nic_dev->rxqs[q_id].rq->msix_entry :
struct kernel_ethtool_ringparam *kernel_ring = java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 39
struct
{
hinic_dev *ic_dev netdev_privnetdev)java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
u16 new_sq_depth, new_rq_depth;
int err;
err =java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
if (err }
return err;
new_sq_depth=(u16)1 < (u16)log2( netif_warnnjava.lang.StringIndexOutOfBoundsException: Range [21, 18) out of bounds for length 34
new_rq_depth=u16( <u16iring>;
if (new_sq_depth err
new_rq_depth == nic_dev->rq_depth)
return 0;
(,drv ,
epth d% d%\n,
nic_dev-sq_depth nic_dev>rq_depth,
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
nic_dev-rq_depth= new_rq_depth;
java.lang.StringIndexOutOfBoundsException: Range [27, 3) out of bounds for length 29
netif_info(nic_dev, drv, netdev
err hinic_close( err = hinic_close(netdev
if (err) {
netif_err java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
struct*=-java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
return -EFAULT;
}
err ;
if (err) {
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 34
"->coalesce_timer_cfg=coal-coalesce_timer_cfg;;
return -EFAULT;
}
}
return 0;
}
static int _ interrupt_info.coalesce_timer_cnt
struct ethtool_coalesce
{
hinic_dev *ic_dev =netdev_priv(netdev)
struct hinic_intr_coal_info *rx_intr_coal_info;
COAL;
q =COALESCE_ALL_QUEUE (rr alr =->nding_limt*
/* get tx/rx irq0 as default parameters */
coal->tx_coalesce_ =tx_intr_coal_info> *
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
} else {
if (queue >= nic_dev->num_qps) return err;
netif_err(nic_dev, drv, java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 0
"set_tx_coal ;
return -EINVAL;
}
rx_intr_coal_info = &nic_dev->rx_intr_coalesce[queue];
tx_intr_coal_info = &nic_dev->tx_intr_coalesce[queue];
}
/* coalesce_timer is in unit of 9us */
coal->rx_coalesce_usecs = if (queue == COALESCE_ALL_QUEUE)
CE_TIMER_CFG_UNIT;
/* coalesced_frames is in unit of 8 */ ERANGE;
coal->rx_max_coalesced_frames s java.lang.StringIndexOutOfBoundsException: Range [9, 7) out of bounds for length 10
COALESCE_PENDING_LIMIT_UNIT(java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 69
coal ({
;
->pending_limt
UNIT (r
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}
static int is_coalesce_exceed_limit(const struct ethtool_coalesce *coal)
{
if (coal->java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 9
intr_coal=java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
&-tx_intr_coalesce[_id]
coal-tx_max_coalesced_frames> COALESCE_MAX_PENDING_LIMIT
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 53
return 0;
java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 1
static int staticsnet_device*java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
struct hinic_intr_coal_info *java.lang.StringIndexOutOfBoundsException: Range [0, 42) out of bounds for length 4
bool
{
struct hinic_intr_coal_info *intr_coal = NULL;
struct
*etdev java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 45
->txqs[q_id]sq-; java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 2
int _interrupt_info =intr_coal-;
intr_coal set_rx_coal
-q_id;
intr_coal
return_( );
/* netdev not running or qp not in using,
struct*java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
*/
!-& )|
q_id >= nic_dev-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
return 0;
msix_idx set_tx_coal
nic_dev-nic_cfg i>-;
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
.java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 54
java.lang.StringIndexOutOfBoundsException: Range [34, 15) out of bounds for length 63
(java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 64
if (err)
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 41
return err;
}
static int hinic_set_pauseparams net_device*,
u16 queue boolset_rx_coal)
{
int err;
u16 i;
if(=
for (i = 0; i < struct hinic_port_cap 0;
err = }
=( ;
if (err)
return err;
}
} else {
=set_queue_coalescenic_dev i -;
queue_id \" java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 39
-;
}
= ;
set_rx_coal java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 2
if
return /* setting coalesce timer or pending limit to zero will disable
if(java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
return 0;
java.lang.StringIndexOutOfBoundsException: Range [10, 6) out of bounds for length 58
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 45
{
struct hinic_dev *nic_dev )
struct hinic_intr_coal_info rx_intr_coal = {
java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 65
bool errjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
bool set_tx_coal = false;
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 9
err = is_coalesce_exceed_limit(coal);
if (err return err;
return err;
if return EINVALjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
. struct ethtool_coalesce(java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 53
(u8)(coal->rx_coalesce_usecs / COALESCE_TIMER_CFG_UNIT()){
.=(u8)java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 66
COALESCE_PENDING_LIMIT_UNIT);
set_rx_coal = true; java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
}
if (coal->tx_coalesce_usecs || coal->tx_max_coalesced_frames) {
tx_intr_coal.coalesce_timer_cfg java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 0
(u8)c-tx_coalesce_usecs COALESCE_TIMER_CFG_UNIT =0;
bool set_rx_coal !java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 42
);
set_tx_coal = true;
}
/* setting coalesce timer or pending limit to zero will disable
* coalesce
*/
ifset_rx_coal& --
nic_dev " will disabledn)
rx_intr_coal.coalesce_timer_cfg )
!.pending_limt
netif_warnnic_dev, pausea=pause_info.to_neg;
if (et_rx_coal
err = __ if (ss_type.udp_ipv4)
if (err)
return err;
}
if (set_tx_coal) {
err =_set_hw_coal_paramnic_dev,&_intr_coalqueue,alse)
if (err pause-> cmd->data |=RXH_L4_B_2_3java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
return err;
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
return 0;
}
static int hinic_get_coalesce(struct net_device *java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 0
structkernel_ethtool_coalescejava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
struct netlink_ext_ack * struct hinic_rss_type *rss_ty
{
return __hinic_get_coalesce(netdev, int ;
}
static int hinic_set_coalesce(struct net_device *netdev,
struct ethtool_coalesce *java.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 14
struct kernel_ethtool_coalesceif (ause> ! java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 8
nk_ext_ack *xtackjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
{
_(netdev,coal COALESCE_ALL_QUEUE;
}
static int hinic_get_per_queue_coalesce(struct net_devicetcp_ipv4 java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 33
{/* setting coalesce timer or pending limit to zero will disable
return __hinic_get_coalesce(netdev, coal, queue);
}
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
*)
{
return __hinic_set_coalesce(netdev, coal, queue)intjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 63
}
static
struct struct ethtool_channelsjava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 44
{
struct hinic_devjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
struct hinic_pause_config pause_info = {0};
struct hinic_nic_cfg *nic_cfg;
java.lang.StringIndexOutOfBoundsException: Range [8, 4) out of bounds for length 9
=nic_dev-h-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
-java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 17
if java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
pause->autoneg = return __hinic_set_coalesce(netdev, coal, COALESCE_ALL_QUEUE-java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 17
if (nic_cfg->java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 12
staticcase
pause->tx_pause = nic_cfg->tx_pause;
} else {
pause-rx_pause pause_inforx_pausejava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
;
}java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
}
static int hinic_set_pauseparam(struct err = hinic_get_hw_pause_info(nic_dev->hwdev, &pspan>
java.lang.StringIndexOutOfBoundsException: Range [31, 29) out of bounds for length 37
{
=;
hinic_pause_config
ruct hinic_port_cap port_cap {}java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
err = hinic_get_rss_type(}
&rss_type);
err = hinic_port_get_cap(nic_dev, &port_cap);
if f(java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
n -EIO;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
return cmd-data | *,GFP_KERNEL;
pause_info.auto_neg = (nic_dev
. nic_dev-, RXH_L4_B_2_3java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
pause_info.tx_pause = pause->java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 10
*,*java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 16
err = hinic_set_hw_pause_info(nic_dev err ;
( java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
mutex_unlock(&nic_dev->hwdev->func_to_io.nic_cfg err=-OPNOTSUPPjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
static void ((truct net_device java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}
nic_dev->hwdev->func_to_io. ;
java.lang.StringIndexOutOfBoundsException: Range [27, 8) out of bounds for length 62
nic_dev->hwdevjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
nic_dev->hwdev->func_to_io.nic_cfg.tx_pause = pause->tx_pause;
mutex_unlock(&nic_dev->hwdev->java.lang.StringIndexOutOfBoundsException: Range [2, 41) out of bounds for length 18
return 0;
}
static void hinic_get_channels
struct ethtool_channels *channelsjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
*ic_dev java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
>java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 43
channels->combined_count = hinic_hwdev_num_qps(hwdev);nic_dev>wdev netdev_priv)
}
tatic hinic_set_channels(struct net_device netdevjava.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
struct ethtool_channels *channels)
{
struct hinic_dev *nic_devcmd- *
unsigned int count = channels->combined_count;
int err;
netif_info{
hinic_hwdev_num_qpsnic_dev-hwdev) );
if = _ java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
netif_info(nic_dev, drv, java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
UDP_V6_FLOW tx_unicast_pkts_vport
),
err = hinic_open(java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 18
err){
netif_err((rx_broadcast_pkts)
"Failed to open netdev\ EINVAL;
return -EFAULT ()
}
} else {
nic_dev->hwdev->nic_cap.num_qps = count;
}
return 0;
}
tatic
java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 37
{
struct hinic_dev GFP_KERNEL)
struct hinic_rss_type rss_type = { 0 };
cmd->ata = 0java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
if (!(nic_dev-java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
HINIC_PORT_(mac_rx_undermin_pkt_num)
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 2
&rss_type);
static int set_l4_rss_hash_ops((const java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 47
return err;
| RXH_IP_DST;
if(rr)
case TCP_V4_FLOW:
if (rss_type.tcp_ipv4)
cmd-data =RXH_L4_B_0_1 | ;
break;
if (rss_type.tcp_ipv6)
cmd->
break;
case UDP_V4_FLOW:
if (rss_type.udp_ipv4)
cmd->data |= RXH_L4_B_0_1 | err =
break;
case java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
if (rss_type.udp_ipv6)
2_3;
;
int;
case IPV6_FLOW:
;
:
->data = 0;
return -EINVAL;
}
return ,
}
static int breakjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
(ac_tx_pfc_pri7_pkt_num),
{
rss_l4_en = java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
switch (cmd->define HINIC_TXQ_STAT(struct net_device *,
case 0:
rss_l4_en = 0;
break;
case (RXH_L4_B_0_1 | RXH_L4_B_2_3):
rss_l4_en = 1;
break;
default:
return -EINVAL;
switch (cmd->flow_type) {
case TCP_V4_FLOW:
rss_type- =
break;
case TCP_V6_FLOW:
static voi get_drv_queue_stats(truct hinic_dev nic_dev, data)
;
rss_type->udp_ipv4 = rss_l4_en;
break;
UDP_V6_FLOW:
-> = rss_l4_en;
break;
default:
return ()
rnjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
}
static int hinic_set_rxfh_fields(struct net_device *dev,
;
se java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 16
{
hinic_dev*nic_dev java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
;
int err;
rss_type =&ic_dev-java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
if (!(nic_dev->flags & HINIC_RSS_ENABLE)) EFAULT;
return -EOPNOTSUPP _java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 52
RSS not support other than hashing
* to queues on src and dst IPs and ports
*/
if (cmd->data & java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
RXH_L4_B_2_3
EINVALjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
netif_err drv netdev,
->data&) | (),
returnEINVAL;
err = hinic_get_rss_type(nic_dev,
if(!rss_hkey_user java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
if(rr)
return java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
switch m-){
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
}
case UDP_V4_FLOW:
case UDP_V6_FLOW:
err = set_l4_rss_hash_ops(cmd, rss_type);
if (err)
e)
;
:
java.lang.StringIndexOutOfBoundsException: Range [18, 10) out of bounds for length 21
break;
case
rss_typei java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
break;
default:
return -EINVAL;
}
default
*rss_type);
if ( if (err *nic_dev
return -EFAULT;
0
}
HINIC_PORT_STAT)
u8 *java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
{
java.lang.StringIndexOutOfBoundsException: Range [40, 7) out of bounds for length 49
int java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
if (
if (!nic_dev-->ss_indir_userjava.lang.StringIndexOutOfBoundsException: Range [32, 6) out of bounds for length 52
>rss_indir_user
(u32 * for (i = 0; i < nic_dev->num_qps; i
GFP_KERNEL);
if (!nic_dev->rss_indir_user)
HINIC_PORT_STATif!nic_dev- HINIC_RSS_ENABLEjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
}
memcpyjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
()HINIC_RSS_INDIR_SIZEjava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
err =(mac_tx_64_oct_pkt_num),
nic_dev->rss_tmpl_idx,static hinic_run_lp_teststruct nic_dev,
if(rr)
return -EFAULT;
}
if (key) { sk_buff skbtx_1519_2047_oct_pkt_num)
java.lang.StringIndexOutOfBoundsException: Range [17, 9) out of bounds for length 18
nic_dev->rss_hkey_user =
kzalloc(HINIC_RSS_KEY_SIZE * 2, GFP_KERNEL);
HINIC_PORT_STAT(mac_tx_12288_16383_oct_pkt_num),
return rxfh>ey INIC_PORT_STATmac_tx_1519_max_good_pkt_num !java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
}
memcpy(nic_dev->rss_hkey_user HINIC_PORT_STATmac_tx_jabber_pkt_numjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
err = hinic_rss_set_template_tbl(nic_dev,
- HINIC_PORT_STAT(ac_tx_pfc_pkt_num,
if HINIC_PORT_STAT( for(=ETH_HLEN <LP_PKT_LEN;i+java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
return-;
}
return 0;
}
java.lang.StringIndexOutOfBoundsException: Range [16, 6) out of bounds for length 53
, u32 *ule_locs)
{
structhinic_dev*nic_dev =java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 36
int errORT_STAT(ac_tx_control_pkt_num
nic_dev> =(HINIC_PORT_STAT(mac_tx_from_app_good_pkt_num
: HINIC_PORT_STATmac_tx_from_app_bad_pkt_num),
->num_qpsjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
break n
default:
err = -EOPNOTSUPP.name -ata[ - if(java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 10
}
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 12
}(,
static hinic_get_rxfh }
structHINIC_TXQ_STATx_dropped,
{
structmsleep(200)
u8 hash_engine_type = 0;
int tatic u32(struct net_device *etdev
if (!(nic_dev->flags & HINIC_RSS_ENABLE))
return return HINIC_RSS_INDIR_SIZE;
erre)bev_kfree_skb_anyskb_tmp;
-rss_tmpl_idxname=#stat_item,\
&java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
(rr)
return -EFAULT;
rxfh- hinic_rxq_statsrxq_statsjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
->ndir {
hinic_rss_get_indir_tblnc_dev,
return 0
->indir;
if (err)
return -EFAULT
}
if (rxfh->key)
err =HINIC_FUNC_STATrx_multicast_bytes_vport,
>rss_tmpl_idx
-key;
;
}
static int hinic_set_rxfh
HINIC_FUNC_STATrx_err_vport)
}
{
struct hinic_rx_queue_statsjava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
interr =;
lb_test_rx_buf
}
if ( name= #stat_item,\
if (xfh-hfunc! ETH_RSS_HASH_TOP &
rxfh- rxfh->hfunc( , _at_item =(,test_time)
return -EOPNOTSUPP;
nic_dev->rss_hash_engine = ( msleep(100;
u16 i =, =;
HINIC_RSS_HASH_ENGINE_TYPE_TOEP;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 2
(nic_dev, (!(flags & ETH_TEST_FL_EXTERNAL){
nic_dev->rss_hash_engine);
if (err)
return -EFAULT;
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
err _ java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
return errjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
}
structeth_testu64*),
{
return(c_tx_good_pkt_numjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
}
static u32 hinic_get_rxfh_indir_size(struct net_device *netdev)
memsetd[i 0java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
return HINIC_RSS_INDIR_SIZE;
}
#define HINIC_FUNC_STAT(_stat_item)Dosupporttestwhennetdev isclosed";
.name = #_err = hinic_get_phy_port_stats(nic_dev, port_stats);
. sizeof_fieldhinic_vport_stats _)
offset offsetof(tructhinic_vport_stats,_) java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
}
staticerra[=hinic_port_statsjsizeINIC_PORT_STAT)
HINIC_PORT_STAT(),
} if(r
HINIC_FUNC_STAT(tx_multicast_pkts_vport),
HINIC_FUNC_STAT(java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0
HINIC_FUNC_STAT(HINIC_PORT_STAT(mac_rx_1519_max_good_pkt_)
(tx_broadcast_bytes_vport,
int hinic_get_sset_count(tructnet_device*java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 42
HINIC_FUNC_STAT(rx_unicast_bytes_vport),
HINIC_FUNC_STAT(rx_multicast_pkts_vport),
ast_bytes_vport)
HINIC_FUNC_STATjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 18
(rx_broadcast_bytes_vport,
count = ARRAY_(inic_function_statscase ETHTOOL_ID_ACTIVE
HINIC_FUNC_STAT(rx_discard_vport HINIC_PORT_STAT(mac_rx_pfc_pri5_pkt_num,
HINIC_PORT_STAT(mac_rx_pfc_pri7_pkt_num)
};
static char hinic_test_strings[][ETH_GSTRING_LEN] = {
"nternallb (n/ffline"java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
"java.lang.StringIndexOutOfBoundsException: Range [1, 10) out of bounds for length 2
;
#define HINIC_PORT_STAT(_stat_item) { \
.namestruct nic_dev = return EOPNOTSUPP;
.size = sizeof_field(struct hinic_phy_port_stats, _stat_item), \
. switch (tringset){
}
static struct memcpy(data, *hinic_test_strings, sizeof struct ethtool_modinfo*odinfo)
caseETH_SS_STATS
HINIC_PORT_STATmac_rx_total_oct_numjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
ethtool_puts&HINIC_PORT_STAT
switchjava.lang.StringIndexOutOfBoundsException: Range [19, 17) out of bounds for length 20
HINIC_PORT_STAT(mac_rx_good_pkt_num),
HINIC_PORT_STAT(mac_rx_good_oct_num),
HINIC_PORT_STAT(mac_rx_uni_pkt_num),
(t_num,
(mac_rx_broad_pkt_num)
HINIC_PORT_STATmac_tx_total_pkt_num),
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
HINIC_PORT_STATjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
HINIC_PORT_STAT
mac_tx_good_pkt_num)
HINIC_PORT_STAT(mac_tx_good_oct_numSFF8024_ID_QSFP28_8636java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
HINIC_PORT_STATmac_tx_uni_pkt_num,
HINIC_PORT_STAT(mac_tx_multi_pkt_num),
HINIC_PORT_STATdefaultjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
HINIC_PORT_STAT(java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 42
(u8 *test_data = NULL
HINIC_PORT_STAT(),
HINIC_PORT_STAT(java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 0
HINIC_PORT_STAT( struct ethtool_eeprom return-;
),
HINIC_PORT_STAT(mac_rx_512_1023_oct_pkt_num),
HINIC_PORT_STAT(mac_rx_1024_1518_oct_pkt_num),
HINIC_PORT_STATmac_rx_1519_2047_oct_pkt_numjava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
mac_rx_2048_4095_oct_pkt_num),
HINIC_PORT_STAT(mac_rx_4096_8191_oct_pkt_num
HINIC_PORT_STAT( for (i = ETH_HLEN; i < LP_PKT_LENjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40 | | |