net/sfc: use compat for 128-bit unsigned integer
Prepare to support ARMv8. Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com> Reviewed-by: Andy Moreton <amoreton@xilinx.com>
This commit is contained in:
parent
d0714c393e
commit
31113761e2
@ -40,8 +40,8 @@ sfc_ef10_ev_qclear_cache_line(void *ptr)
|
||||
static inline void
|
||||
sfc_ef10_ev_qclear_cache_line(void *ptr)
|
||||
{
|
||||
const __m128i val = _mm_set1_epi64x(UINT64_MAX);
|
||||
__m128i *addr = ptr;
|
||||
const efsys_uint128_t val = _mm_set1_epi64x(UINT64_MAX);
|
||||
efsys_uint128_t *addr = ptr;
|
||||
unsigned int i;
|
||||
|
||||
RTE_BUILD_BUG_ON(sizeof(val) > RTE_CACHE_LINE_SIZE);
|
||||
|
@ -247,7 +247,7 @@ sfc_ef10_tx_qpush(struct sfc_ef10_txq *txq, unsigned int added,
|
||||
*/
|
||||
rte_io_wmb();
|
||||
|
||||
*(volatile __m128i *)txq->doorbell = oword.eo_u128[0];
|
||||
*(volatile efsys_uint128_t *)txq->doorbell = oword.eo_u128[0];
|
||||
}
|
||||
|
||||
static unsigned int
|
||||
|
Loading…
Reference in New Issue
Block a user