DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] ethdev: port kernel definitions for module EEPROM
@ 2019-09-09 11:09 Dekel Peled
  2019-09-10  6:11 ` Slava Ovsiienko
  0 siblings, 1 reply; 3+ messages in thread
From: Dekel Peled @ 2019-09-09 11:09 UTC (permalink / raw)
  To: thomas, ferruh.yigit, arybchenko, shahafs; +Cc: orika, dev

This patch copies definitions of maximal data length in module eeprom,
from include/uapi/linux/ethtool.h.

These definitions can be used by application to validate data length.

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
---
 lib/librte_ethdev/rte_dev_info.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/librte_ethdev/rte_dev_info.h b/lib/librte_ethdev/rte_dev_info.h
index fea5da8..7a6b61f 100644
--- a/lib/librte_ethdev/rte_dev_info.h
+++ b/lib/librte_ethdev/rte_dev_info.h
@@ -43,7 +43,9 @@ struct rte_eth_dev_module_info {
 #define RTE_ETH_MODULE_SFF_8472_LEN         512
 #define RTE_ETH_MODULE_SFF_8636             0x3
 #define RTE_ETH_MODULE_SFF_8636_LEN         256
+#define RTE_ETH_MODULE_SFF_8636_MAX_LEN     640
 #define RTE_ETH_MODULE_SFF_8436             0x4
 #define RTE_ETH_MODULE_SFF_8436_LEN         256
+#define RTE_ETH_MODULE_SFF_8436_MAX_LEN     640
 
 #endif /* _RTE_DEV_INFO_H_ */
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] ethdev: port kernel definitions for module EEPROM
  2019-09-09 11:09 [dpdk-dev] [PATCH] ethdev: port kernel definitions for module EEPROM Dekel Peled
@ 2019-09-10  6:11 ` Slava Ovsiienko
  2019-10-09  7:43   ` Ferruh Yigit
  0 siblings, 1 reply; 3+ messages in thread
From: Slava Ovsiienko @ 2019-09-10  6:11 UTC (permalink / raw)
  To: Dekel Peled, Thomas Monjalon, ferruh.yigit, arybchenko, Shahaf Shuler
  Cc: Ori Kam, dev

> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of Dekel Peled
> Sent: Monday, September 9, 2019 14:10
> To: Thomas Monjalon <thomas@monjalon.net>; ferruh.yigit@intel.com;
> arybchenko@solarflare.com; Shahaf Shuler <shahafs@mellanox.com>
> Cc: Ori Kam <orika@mellanox.com>; dev@dpdk.org
> Subject: [dpdk-dev] [PATCH] ethdev: port kernel definitions for module
> EEPROM
> 
> This patch copies definitions of maximal data length in module eeprom, from
> include/uapi/linux/ethtool.h.
> 
> These definitions can be used by application to validate data length.
> 
> Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>

> ---
>  lib/librte_ethdev/rte_dev_info.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/lib/librte_ethdev/rte_dev_info.h
> b/lib/librte_ethdev/rte_dev_info.h
> index fea5da8..7a6b61f 100644
> --- a/lib/librte_ethdev/rte_dev_info.h
> +++ b/lib/librte_ethdev/rte_dev_info.h
> @@ -43,7 +43,9 @@ struct rte_eth_dev_module_info {
>  #define RTE_ETH_MODULE_SFF_8472_LEN         512
>  #define RTE_ETH_MODULE_SFF_8636             0x3
>  #define RTE_ETH_MODULE_SFF_8636_LEN         256
> +#define RTE_ETH_MODULE_SFF_8636_MAX_LEN     640
>  #define RTE_ETH_MODULE_SFF_8436             0x4
>  #define RTE_ETH_MODULE_SFF_8436_LEN         256
> +#define RTE_ETH_MODULE_SFF_8436_MAX_LEN     640
> 
>  #endif /* _RTE_DEV_INFO_H_ */
> --
> 1.8.3.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] ethdev: port kernel definitions for module EEPROM
  2019-09-10  6:11 ` Slava Ovsiienko
@ 2019-10-09  7:43   ` Ferruh Yigit
  0 siblings, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2019-10-09  7:43 UTC (permalink / raw)
  To: Slava Ovsiienko, Dekel Peled, Thomas Monjalon, arybchenko, Shahaf Shuler
  Cc: Ori Kam, dev

On 9/10/2019 7:11 AM, Slava Ovsiienko wrote:
>> -----Original Message-----
>> From: dev <dev-bounces@dpdk.org> On Behalf Of Dekel Peled
>> Sent: Monday, September 9, 2019 14:10
>> To: Thomas Monjalon <thomas@monjalon.net>; ferruh.yigit@intel.com;
>> arybchenko@solarflare.com; Shahaf Shuler <shahafs@mellanox.com>
>> Cc: Ori Kam <orika@mellanox.com>; dev@dpdk.org
>> Subject: [dpdk-dev] [PATCH] ethdev: port kernel definitions for module
>> EEPROM
>>
>> This patch copies definitions of maximal data length in module eeprom, from
>> include/uapi/linux/ethtool.h.
>>
>> These definitions can be used by application to validate data length.
>>
>> Signed-off-by: Dekel Peled <dekelp@mellanox.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>

Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>

Applied to dpdk-next-net/master, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-10-09  7:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-09 11:09 [dpdk-dev] [PATCH] ethdev: port kernel definitions for module EEPROM Dekel Peled
2019-09-10  6:11 ` Slava Ovsiienko
2019-10-09  7:43   ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).