dpaa_ethtool.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572
  1. /* Copyright 2008-2016 Freescale Semiconductor, Inc.
  2. *
  3. * Redistribution and use in source and binary forms, with or without
  4. * modification, are permitted provided that the following conditions are met:
  5. * * Redistributions of source code must retain the above copyright
  6. * notice, this list of conditions and the following disclaimer.
  7. * * Redistributions in binary form must reproduce the above copyright
  8. * notice, this list of conditions and the following disclaimer in the
  9. * documentation and/or other materials provided with the distribution.
  10. * * Neither the name of Freescale Semiconductor nor the
  11. * names of its contributors may be used to endorse or promote products
  12. * derived from this software without specific prior written permission.
  13. *
  14. *
  15. * ALTERNATIVELY, this software may be distributed under the terms of the
  16. * GNU General Public License ("GPL") as published by the Free Software
  17. * Foundation, either version 2 of that License or (at your option) any
  18. * later version.
  19. *
  20. * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
  21. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  22. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  23. * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
  24. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  25. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  26. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  27. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  28. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  29. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. */
  31. #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
  32. #include <linux/string.h>
  33. #include <linux/of_platform.h>
  34. #include <linux/net_tstamp.h>
  35. #include <linux/fsl/ptp_qoriq.h>
  36. #include "dpaa_eth.h"
  37. #include "mac.h"
  38. static const char dpaa_stats_percpu[][ETH_GSTRING_LEN] = {
  39. "interrupts",
  40. "rx packets",
  41. "tx packets",
  42. "tx confirm",
  43. "tx S/G",
  44. "tx error",
  45. "rx error",
  46. };
  47. static char dpaa_stats_global[][ETH_GSTRING_LEN] = {
  48. /* dpa rx errors */
  49. "rx dma error",
  50. "rx frame physical error",
  51. "rx frame size error",
  52. "rx header error",
  53. /* demultiplexing errors */
  54. "qman cg_tdrop",
  55. "qman wred",
  56. "qman error cond",
  57. "qman early window",
  58. "qman late window",
  59. "qman fq tdrop",
  60. "qman fq retired",
  61. "qman orp disabled",
  62. /* congestion related stats */
  63. "congestion time (ms)",
  64. "entered congestion",
  65. "congested (0/1)"
  66. };
  67. #define DPAA_STATS_PERCPU_LEN ARRAY_SIZE(dpaa_stats_percpu)
  68. #define DPAA_STATS_GLOBAL_LEN ARRAY_SIZE(dpaa_stats_global)
  69. static int dpaa_get_link_ksettings(struct net_device *net_dev,
  70. struct ethtool_link_ksettings *cmd)
  71. {
  72. if (!net_dev->phydev) {
  73. netdev_dbg(net_dev, "phy device not initialized\n");
  74. return 0;
  75. }
  76. phy_ethtool_ksettings_get(net_dev->phydev, cmd);
  77. return 0;
  78. }
  79. static int dpaa_set_link_ksettings(struct net_device *net_dev,
  80. const struct ethtool_link_ksettings *cmd)
  81. {
  82. int err;
  83. if (!net_dev->phydev) {
  84. netdev_err(net_dev, "phy device not initialized\n");
  85. return -ENODEV;
  86. }
  87. err = phy_ethtool_ksettings_set(net_dev->phydev, cmd);
  88. if (err < 0)
  89. netdev_err(net_dev, "phy_ethtool_ksettings_set() = %d\n", err);
  90. return err;
  91. }
  92. static void dpaa_get_drvinfo(struct net_device *net_dev,
  93. struct ethtool_drvinfo *drvinfo)
  94. {
  95. int len;
  96. strlcpy(drvinfo->driver, KBUILD_MODNAME,
  97. sizeof(drvinfo->driver));
  98. len = snprintf(drvinfo->version, sizeof(drvinfo->version),
  99. "%X", 0);
  100. len = snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version),
  101. "%X", 0);
  102. if (len >= sizeof(drvinfo->fw_version)) {
  103. /* Truncated output */
  104. netdev_notice(net_dev, "snprintf() = %d\n", len);
  105. }
  106. strlcpy(drvinfo->bus_info, dev_name(net_dev->dev.parent->parent),
  107. sizeof(drvinfo->bus_info));
  108. }
  109. static u32 dpaa_get_msglevel(struct net_device *net_dev)
  110. {
  111. return ((struct dpaa_priv *)netdev_priv(net_dev))->msg_enable;
  112. }
  113. static void dpaa_set_msglevel(struct net_device *net_dev,
  114. u32 msg_enable)
  115. {
  116. ((struct dpaa_priv *)netdev_priv(net_dev))->msg_enable = msg_enable;
  117. }
  118. static int dpaa_nway_reset(struct net_device *net_dev)
  119. {
  120. int err;
  121. if (!net_dev->phydev) {
  122. netdev_err(net_dev, "phy device not initialized\n");
  123. return -ENODEV;
  124. }
  125. err = 0;
  126. if (net_dev->phydev->autoneg) {
  127. err = phy_start_aneg(net_dev->phydev);
  128. if (err < 0)
  129. netdev_err(net_dev, "phy_start_aneg() = %d\n",
  130. err);
  131. }
  132. return err;
  133. }
  134. static void dpaa_get_pauseparam(struct net_device *net_dev,
  135. struct ethtool_pauseparam *epause)
  136. {
  137. struct mac_device *mac_dev;
  138. struct dpaa_priv *priv;
  139. priv = netdev_priv(net_dev);
  140. mac_dev = priv->mac_dev;
  141. if (!net_dev->phydev) {
  142. netdev_err(net_dev, "phy device not initialized\n");
  143. return;
  144. }
  145. epause->autoneg = mac_dev->autoneg_pause;
  146. epause->rx_pause = mac_dev->rx_pause_active;
  147. epause->tx_pause = mac_dev->tx_pause_active;
  148. }
  149. static int dpaa_set_pauseparam(struct net_device *net_dev,
  150. struct ethtool_pauseparam *epause)
  151. {
  152. struct mac_device *mac_dev;
  153. struct phy_device *phydev;
  154. bool rx_pause, tx_pause;
  155. struct dpaa_priv *priv;
  156. u32 newadv, oldadv;
  157. int err;
  158. priv = netdev_priv(net_dev);
  159. mac_dev = priv->mac_dev;
  160. phydev = net_dev->phydev;
  161. if (!phydev) {
  162. netdev_err(net_dev, "phy device not initialized\n");
  163. return -ENODEV;
  164. }
  165. if (!(phydev->supported & SUPPORTED_Pause) ||
  166. (!(phydev->supported & SUPPORTED_Asym_Pause) &&
  167. (epause->rx_pause != epause->tx_pause)))
  168. return -EINVAL;
  169. /* The MAC should know how to handle PAUSE frame autonegotiation before
  170. * adjust_link is triggered by a forced renegotiation of sym/asym PAUSE
  171. * settings.
  172. */
  173. mac_dev->autoneg_pause = !!epause->autoneg;
  174. mac_dev->rx_pause_req = !!epause->rx_pause;
  175. mac_dev->tx_pause_req = !!epause->tx_pause;
  176. /* Determine the sym/asym advertised PAUSE capabilities from the desired
  177. * rx/tx pause settings.
  178. */
  179. newadv = 0;
  180. if (epause->rx_pause)
  181. newadv = ADVERTISED_Pause | ADVERTISED_Asym_Pause;
  182. if (epause->tx_pause)
  183. newadv ^= ADVERTISED_Asym_Pause;
  184. oldadv = phydev->advertising &
  185. (ADVERTISED_Pause | ADVERTISED_Asym_Pause);
  186. /* If there are differences between the old and the new advertised
  187. * values, restart PHY autonegotiation and advertise the new values.
  188. */
  189. if (oldadv != newadv) {
  190. phydev->advertising &= ~(ADVERTISED_Pause
  191. | ADVERTISED_Asym_Pause);
  192. phydev->advertising |= newadv;
  193. if (phydev->autoneg) {
  194. err = phy_start_aneg(phydev);
  195. if (err < 0)
  196. netdev_err(net_dev, "phy_start_aneg() = %d\n",
  197. err);
  198. }
  199. }
  200. fman_get_pause_cfg(mac_dev, &rx_pause, &tx_pause);
  201. err = fman_set_mac_active_pause(mac_dev, rx_pause, tx_pause);
  202. if (err < 0)
  203. netdev_err(net_dev, "set_mac_active_pause() = %d\n", err);
  204. return err;
  205. }
  206. static int dpaa_get_sset_count(struct net_device *net_dev, int type)
  207. {
  208. unsigned int total_stats, num_stats;
  209. num_stats = num_online_cpus() + 1;
  210. total_stats = num_stats * (DPAA_STATS_PERCPU_LEN + DPAA_BPS_NUM) +
  211. DPAA_STATS_GLOBAL_LEN;
  212. switch (type) {
  213. case ETH_SS_STATS:
  214. return total_stats;
  215. default:
  216. return -EOPNOTSUPP;
  217. }
  218. }
  219. static void copy_stats(struct dpaa_percpu_priv *percpu_priv, int num_cpus,
  220. int crr_cpu, u64 *bp_count, u64 *data)
  221. {
  222. int num_values = num_cpus + 1;
  223. int crr = 0, j;
  224. /* update current CPU's stats and also add them to the total values */
  225. data[crr * num_values + crr_cpu] = percpu_priv->in_interrupt;
  226. data[crr++ * num_values + num_cpus] += percpu_priv->in_interrupt;
  227. data[crr * num_values + crr_cpu] = percpu_priv->stats.rx_packets;
  228. data[crr++ * num_values + num_cpus] += percpu_priv->stats.rx_packets;
  229. data[crr * num_values + crr_cpu] = percpu_priv->stats.tx_packets;
  230. data[crr++ * num_values + num_cpus] += percpu_priv->stats.tx_packets;
  231. data[crr * num_values + crr_cpu] = percpu_priv->tx_confirm;
  232. data[crr++ * num_values + num_cpus] += percpu_priv->tx_confirm;
  233. data[crr * num_values + crr_cpu] = percpu_priv->tx_frag_skbuffs;
  234. data[crr++ * num_values + num_cpus] += percpu_priv->tx_frag_skbuffs;
  235. data[crr * num_values + crr_cpu] = percpu_priv->stats.tx_errors;
  236. data[crr++ * num_values + num_cpus] += percpu_priv->stats.tx_errors;
  237. data[crr * num_values + crr_cpu] = percpu_priv->stats.rx_errors;
  238. data[crr++ * num_values + num_cpus] += percpu_priv->stats.rx_errors;
  239. for (j = 0; j < DPAA_BPS_NUM; j++) {
  240. data[crr * num_values + crr_cpu] = bp_count[j];
  241. data[crr++ * num_values + num_cpus] += bp_count[j];
  242. }
  243. }
  244. static void dpaa_get_ethtool_stats(struct net_device *net_dev,
  245. struct ethtool_stats *stats, u64 *data)
  246. {
  247. u64 bp_count[DPAA_BPS_NUM], cg_time, cg_num;
  248. struct dpaa_percpu_priv *percpu_priv;
  249. struct dpaa_rx_errors rx_errors;
  250. unsigned int num_cpus, offset;
  251. struct dpaa_ern_cnt ern_cnt;
  252. struct dpaa_bp *dpaa_bp;
  253. struct dpaa_priv *priv;
  254. int total_stats, i, j;
  255. bool cg_status;
  256. total_stats = dpaa_get_sset_count(net_dev, ETH_SS_STATS);
  257. priv = netdev_priv(net_dev);
  258. num_cpus = num_online_cpus();
  259. memset(&bp_count, 0, sizeof(bp_count));
  260. memset(&rx_errors, 0, sizeof(struct dpaa_rx_errors));
  261. memset(&ern_cnt, 0, sizeof(struct dpaa_ern_cnt));
  262. memset(data, 0, total_stats * sizeof(u64));
  263. for_each_online_cpu(i) {
  264. percpu_priv = per_cpu_ptr(priv->percpu_priv, i);
  265. for (j = 0; j < DPAA_BPS_NUM; j++) {
  266. dpaa_bp = priv->dpaa_bps[j];
  267. if (!dpaa_bp->percpu_count)
  268. continue;
  269. bp_count[j] = *(per_cpu_ptr(dpaa_bp->percpu_count, i));
  270. }
  271. rx_errors.dme += percpu_priv->rx_errors.dme;
  272. rx_errors.fpe += percpu_priv->rx_errors.fpe;
  273. rx_errors.fse += percpu_priv->rx_errors.fse;
  274. rx_errors.phe += percpu_priv->rx_errors.phe;
  275. ern_cnt.cg_tdrop += percpu_priv->ern_cnt.cg_tdrop;
  276. ern_cnt.wred += percpu_priv->ern_cnt.wred;
  277. ern_cnt.err_cond += percpu_priv->ern_cnt.err_cond;
  278. ern_cnt.early_window += percpu_priv->ern_cnt.early_window;
  279. ern_cnt.late_window += percpu_priv->ern_cnt.late_window;
  280. ern_cnt.fq_tdrop += percpu_priv->ern_cnt.fq_tdrop;
  281. ern_cnt.fq_retired += percpu_priv->ern_cnt.fq_retired;
  282. ern_cnt.orp_zero += percpu_priv->ern_cnt.orp_zero;
  283. copy_stats(percpu_priv, num_cpus, i, bp_count, data);
  284. }
  285. offset = (num_cpus + 1) * (DPAA_STATS_PERCPU_LEN + DPAA_BPS_NUM);
  286. memcpy(data + offset, &rx_errors, sizeof(struct dpaa_rx_errors));
  287. offset += sizeof(struct dpaa_rx_errors) / sizeof(u64);
  288. memcpy(data + offset, &ern_cnt, sizeof(struct dpaa_ern_cnt));
  289. /* gather congestion related counters */
  290. cg_num = 0;
  291. cg_status = false;
  292. cg_time = jiffies_to_msecs(priv->cgr_data.congested_jiffies);
  293. if (qman_query_cgr_congested(&priv->cgr_data.cgr, &cg_status) == 0) {
  294. cg_num = priv->cgr_data.cgr_congested_count;
  295. /* reset congestion stats (like QMan API does */
  296. priv->cgr_data.congested_jiffies = 0;
  297. priv->cgr_data.cgr_congested_count = 0;
  298. }
  299. offset += sizeof(struct dpaa_ern_cnt) / sizeof(u64);
  300. data[offset++] = cg_time;
  301. data[offset++] = cg_num;
  302. data[offset++] = cg_status;
  303. }
  304. static void dpaa_get_strings(struct net_device *net_dev, u32 stringset,
  305. u8 *data)
  306. {
  307. unsigned int i, j, num_cpus, size;
  308. char string_cpu[ETH_GSTRING_LEN];
  309. u8 *strings;
  310. memset(string_cpu, 0, sizeof(string_cpu));
  311. strings = data;
  312. num_cpus = num_online_cpus();
  313. size = DPAA_STATS_GLOBAL_LEN * ETH_GSTRING_LEN;
  314. for (i = 0; i < DPAA_STATS_PERCPU_LEN; i++) {
  315. for (j = 0; j < num_cpus; j++) {
  316. snprintf(string_cpu, ETH_GSTRING_LEN, "%s [CPU %d]",
  317. dpaa_stats_percpu[i], j);
  318. memcpy(strings, string_cpu, ETH_GSTRING_LEN);
  319. strings += ETH_GSTRING_LEN;
  320. }
  321. snprintf(string_cpu, ETH_GSTRING_LEN, "%s [TOTAL]",
  322. dpaa_stats_percpu[i]);
  323. memcpy(strings, string_cpu, ETH_GSTRING_LEN);
  324. strings += ETH_GSTRING_LEN;
  325. }
  326. for (i = 0; i < DPAA_BPS_NUM; i++) {
  327. for (j = 0; j < num_cpus; j++) {
  328. snprintf(string_cpu, ETH_GSTRING_LEN,
  329. "bpool %c [CPU %d]", 'a' + i, j);
  330. memcpy(strings, string_cpu, ETH_GSTRING_LEN);
  331. strings += ETH_GSTRING_LEN;
  332. }
  333. snprintf(string_cpu, ETH_GSTRING_LEN, "bpool %c [TOTAL]",
  334. 'a' + i);
  335. memcpy(strings, string_cpu, ETH_GSTRING_LEN);
  336. strings += ETH_GSTRING_LEN;
  337. }
  338. memcpy(strings, dpaa_stats_global, size);
  339. }
  340. static int dpaa_get_hash_opts(struct net_device *dev,
  341. struct ethtool_rxnfc *cmd)
  342. {
  343. struct dpaa_priv *priv = netdev_priv(dev);
  344. cmd->data = 0;
  345. switch (cmd->flow_type) {
  346. case TCP_V4_FLOW:
  347. case TCP_V6_FLOW:
  348. case UDP_V4_FLOW:
  349. case UDP_V6_FLOW:
  350. if (priv->keygen_in_use)
  351. cmd->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3;
  352. /* Fall through */
  353. case IPV4_FLOW:
  354. case IPV6_FLOW:
  355. case SCTP_V4_FLOW:
  356. case SCTP_V6_FLOW:
  357. case AH_ESP_V4_FLOW:
  358. case AH_ESP_V6_FLOW:
  359. case AH_V4_FLOW:
  360. case AH_V6_FLOW:
  361. case ESP_V4_FLOW:
  362. case ESP_V6_FLOW:
  363. if (priv->keygen_in_use)
  364. cmd->data |= RXH_IP_SRC | RXH_IP_DST;
  365. break;
  366. default:
  367. cmd->data = 0;
  368. break;
  369. }
  370. return 0;
  371. }
  372. static int dpaa_get_rxnfc(struct net_device *dev, struct ethtool_rxnfc *cmd,
  373. u32 *unused)
  374. {
  375. int ret = -EOPNOTSUPP;
  376. switch (cmd->cmd) {
  377. case ETHTOOL_GRXFH:
  378. ret = dpaa_get_hash_opts(dev, cmd);
  379. break;
  380. default:
  381. break;
  382. }
  383. return ret;
  384. }
  385. static void dpaa_set_hash(struct net_device *net_dev, bool enable)
  386. {
  387. struct mac_device *mac_dev;
  388. struct fman_port *rxport;
  389. struct dpaa_priv *priv;
  390. priv = netdev_priv(net_dev);
  391. mac_dev = priv->mac_dev;
  392. rxport = mac_dev->port[0];
  393. fman_port_use_kg_hash(rxport, enable);
  394. priv->keygen_in_use = enable;
  395. }
  396. static int dpaa_set_hash_opts(struct net_device *dev,
  397. struct ethtool_rxnfc *nfc)
  398. {
  399. int ret = -EINVAL;
  400. /* we support hashing on IPv4/v6 src/dest IP and L4 src/dest port */
  401. if (nfc->data &
  402. ~(RXH_IP_SRC | RXH_IP_DST | RXH_L4_B_0_1 | RXH_L4_B_2_3))
  403. return -EINVAL;
  404. switch (nfc->flow_type) {
  405. case TCP_V4_FLOW:
  406. case TCP_V6_FLOW:
  407. case UDP_V4_FLOW:
  408. case UDP_V6_FLOW:
  409. case IPV4_FLOW:
  410. case IPV6_FLOW:
  411. case SCTP_V4_FLOW:
  412. case SCTP_V6_FLOW:
  413. case AH_ESP_V4_FLOW:
  414. case AH_ESP_V6_FLOW:
  415. case AH_V4_FLOW:
  416. case AH_V6_FLOW:
  417. case ESP_V4_FLOW:
  418. case ESP_V6_FLOW:
  419. dpaa_set_hash(dev, !!nfc->data);
  420. ret = 0;
  421. break;
  422. default:
  423. break;
  424. }
  425. return ret;
  426. }
  427. static int dpaa_set_rxnfc(struct net_device *dev, struct ethtool_rxnfc *cmd)
  428. {
  429. int ret = -EOPNOTSUPP;
  430. switch (cmd->cmd) {
  431. case ETHTOOL_SRXFH:
  432. ret = dpaa_set_hash_opts(dev, cmd);
  433. break;
  434. default:
  435. break;
  436. }
  437. return ret;
  438. }
  439. static int dpaa_get_ts_info(struct net_device *net_dev,
  440. struct ethtool_ts_info *info)
  441. {
  442. struct device *dev = net_dev->dev.parent;
  443. struct device_node *mac_node = dev->of_node;
  444. struct device_node *fman_node = NULL, *ptp_node = NULL;
  445. struct platform_device *ptp_dev = NULL;
  446. struct qoriq_ptp *ptp = NULL;
  447. info->phc_index = -1;
  448. fman_node = of_get_parent(mac_node);
  449. if (fman_node)
  450. ptp_node = of_parse_phandle(fman_node, "ptimer-handle", 0);
  451. if (ptp_node)
  452. ptp_dev = of_find_device_by_node(ptp_node);
  453. if (ptp_dev)
  454. ptp = platform_get_drvdata(ptp_dev);
  455. if (ptp)
  456. info->phc_index = ptp->phc_index;
  457. info->so_timestamping = SOF_TIMESTAMPING_TX_HARDWARE |
  458. SOF_TIMESTAMPING_RX_HARDWARE |
  459. SOF_TIMESTAMPING_RAW_HARDWARE;
  460. info->tx_types = (1 << HWTSTAMP_TX_OFF) |
  461. (1 << HWTSTAMP_TX_ON);
  462. info->rx_filters = (1 << HWTSTAMP_FILTER_NONE) |
  463. (1 << HWTSTAMP_FILTER_ALL);
  464. return 0;
  465. }
  466. const struct ethtool_ops dpaa_ethtool_ops = {
  467. .get_drvinfo = dpaa_get_drvinfo,
  468. .get_msglevel = dpaa_get_msglevel,
  469. .set_msglevel = dpaa_set_msglevel,
  470. .nway_reset = dpaa_nway_reset,
  471. .get_pauseparam = dpaa_get_pauseparam,
  472. .set_pauseparam = dpaa_set_pauseparam,
  473. .get_link = ethtool_op_get_link,
  474. .get_sset_count = dpaa_get_sset_count,
  475. .get_ethtool_stats = dpaa_get_ethtool_stats,
  476. .get_strings = dpaa_get_strings,
  477. .get_link_ksettings = dpaa_get_link_ksettings,
  478. .set_link_ksettings = dpaa_set_link_ksettings,
  479. .get_rxnfc = dpaa_get_rxnfc,
  480. .set_rxnfc = dpaa_set_rxnfc,
  481. .get_ts_info = dpaa_get_ts_info,
  482. };