From: Xuelin Shi
1. cpu use data owned by ixgbe must use rte_le_to_cpu_xx(...)
2. cpu fill data to ixgbe must use rte_cpu_to_le_xx(...)
3. checking pci status with converted constant
Signed-off-by: Xuelin Shi
---
changes for v4:
fix compiling error: cpu16 to cpu_16
fix issues reported by ch
From: Xuelin Shi
1. cpu use data owned by ixgbe must use rte_le_to_cpu_xx(...)
2. cpu fill data to ixgbe must use rte_cpu_to_le_xx(...)
3. checking pci status with converted constant.
Signed-off-by: Xuelin Shi
---
drivers/net/ixgbe/ixgbe_rxtx.c | 77 --
From: Xuelin Shi
enforce rules of the cpu and ixgbe exchange data.
1. cpu use data owned by ixgbe must use rte_le_to_cpu_xx(...)
2. cpu fill data to ixgbe must use rte_cpu_to_le_xx(...)
3. checking pci status with converted constant.
Signed-off-by: Xuelin Shi
---
change for v3:
check pci sta
From: Xuelin Shi
enforce rules of the cpu and ixgbe exchange data.
1. cpu use data owned by ixgbe must use rte_le_to_cpu_xx(...)
2. cpu fill data to ixgbe must use rte_cpu_to_le_xx(...)
Signed-off-by: Xuelin Shi
---
changes for v2:
rebased on latest head.
fix some style issue detected by ch
From: Xuelin Shi
This module uses type conversion between struct and int.
Also truncation and comparison is used with this int.
It is not safe for different endian arch.
Add ifdef for big endian struct to fix this issue.
Signed-off-by: Xuelin Shi
---
changes for v2:
add
lib/librte_lpm/rte
From: Xuelin Shi
This module uses type conversion between struct and int.
Also truncation and comparison is used with this int.
It is not safe for different endian arch.
Add ifdef for big endian struct to fix this issue.
Signed-off-by: Xuelin Shi
---
lib/librte_lpm/rte_lpm.h | 19
From: Xuelin Shi
enforce rules for cpu and ixgbe exchanging data.
1. cpu use data owned by ixgbe must use rte_le_to_cpu_xx(...)
2. cpu fill data to ixgbe must use rte_cpu_to_le_xx(...)
Signed-off-by: Xuelin Shi
---
lib/librte_pmd_ixgbe/ixgbe_rxtx.c | 115 --
From: Xuelin Shi
e1000 is little endian, but cpu maybe not.
add necessary conversions.
rte_cpu_to_le_32(...) for PCI write
rte_le_to_cpu_32(...) for PCI read.
Signed-off-by: Xuelin Shi
---
lib/librte_pmd_e1000/e1000/e1000_osdep.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
dif
From: Xuelin Shi
ixgbe is little endian, but cpu maybe not.
add necessary conversions.
rte_cpu_to_le_32(...) for PCI write
rte_le_to_cpu_32(...) for PCI read.
Signed-off-by: Xuelin Shi
---
lib/librte_pmd_ixgbe/ixgbe/ixgbe_osdep.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-
From: Xuelin Shi
make sure:
CPU read from ixgbe with IXGBE_LE32_TO_CPUS
CPU write to ixgbe with IXGBE_CPU_TO_LE32
otherwise, there is endian issue for ixgbe on BIG_ENDIAN CPU.
Signed-off-by: Xuelin Shi
---
.../linuxapp/kni/ethtool/ixgbe/ixgbe_osdep.h | 24 +++
From: Xuelin Shi
struct tbl_entry{
uint8_t next_hop;
uint8_t valid :1;
uint8_t valid_group :1;
uint8_t depth :6
}
uint16_t tbl = (uint16_t)tbl_entry;
next_hop = (uint8_t)tbl;
next_hop cannot get the correct value of the field
if the cpu arch is BIG_ENDIAN.
change
From: Xuelin Shi
the port number type should be consistent with librte_cmdline,
else there is potential endian issue.
Signed-off-by: Xuelin Shi
---
v2 change:
change port type to uint8
rephrase patch title
app/test-pmd/cmdline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --
From: Xuelin Shi
the port number type should be consistent with librte_cmdline,
else there is potential endian issue.
Signed-off-by: Xuelin Shi
---
app/test-pmd/cmdline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index 4
13 matches
Mail list logo