aboutsummaryrefslogtreecommitdiffstats
path: root/netlink
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@nvidia.com>2021-10-12 16:25:12 +0300
committerMichal Kubecek <mkubecek@suse.cz>2021-11-08 18:17:57 +0100
commit795f42092f205b555e498ee3379d75261c16ef40 (patch)
treeb1e896f591e324b83933ec32c142ac80040beda0 /netlink
parent88892ece6357ddb74fe52a3209c11b9867d4f7b1 (diff)
downloadethtool-795f42092f205b555e498ee3379d75261c16ef40.tar.gz
cmis: Rename CMIS parsing functions
Currently, there are two CMIS parsing functions. qsfp_dd_show_all() and cmis_show_all(). The former is called from the IOCTL path with a buffer containing EEPROM contents and the latter is called from the netlink path with pointer to individual EEPROM pages. Rename them with '_ioctl' and '_nl' suffixes to make the distinction clear. In subsequent patches, these two functions will only differ in the way they initialize the CMIS memory map for parsing, while the parsing code itself will be shared between the two. Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Diffstat (limited to 'netlink')
-rw-r--r--netlink/module-eeprom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/netlink/module-eeprom.c b/netlink/module-eeprom.c
index 48cd2cc..fc4ef1a 100644
--- a/netlink/module-eeprom.c
+++ b/netlink/module-eeprom.c
@@ -332,7 +332,7 @@ static void decoder_print(void)
break;
case SFF8024_ID_QSFP_DD:
case SFF8024_ID_DSFP:
- cmis_show_all(page_zero, page_one);
+ cmis_show_all_nl(page_zero, page_one);
break;
default:
dump_hex(stdout, page_zero->data, page_zero->length, page_zero->offset);