Revision 09c91ddf2cd33489c2c14edfef43ae38d412888e authored by Or Gerlitz on 21 March 2017, 13:59:15 UTC, committed by David S. Miller on 22 March 2017, 19:11:13 UTC
Currently we use the non UAPI values and we miss erring on
the modify action which is not supported, fix that.

Fixes: 8b32580df1cb ('net/mlx5e: Add TC vlan action for SRIOV offloads')
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reported-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 375f51e
Raw File
modsi3.S
! Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
!               Imagination Technologies Ltd
!
! Integer modulus routines.
!
!!
!! 32-bit modulus unsigned i/p - passed unsigned 32-bit numbers
!!
	.text
	.global ___umodsi3
	.type   ___umodsi3,function
	.align  2
___umodsi3:
	MOV     D0FrT,D1RtP             ! Save original return address
	CALLR   D1RtP,___udivsi3
	MOV     D1RtP,D0FrT             ! Recover return address
	MOV     D0Re0,D1Ar1             ! Return remainder
	MOV     PC,D1RtP
	.size   ___umodsi3,.-___umodsi3

!!
!! 32-bit modulus signed i/p - passed signed 32-bit numbers
!!
	.global ___modsi3
	.type   ___modsi3,function
	.align  2
___modsi3:
	MOV     D0FrT,D1RtP             ! Save original return address
	MOV     A0.2,D1Ar1              ! Save A in A0.2
	CALLR   D1RtP,___divsi3
	MOV     D1RtP,D0FrT             ! Recover return address
	MOV     D1Re0,A0.2              ! Recover A
	MOV     D0Re0,D1Ar1             ! Return remainder
	ORS     D1Re0,D1Re0,D1Re0       ! Was A negative?
	NEG     D1Ar1,D1Ar1             ! Negate remainder
	MOVMI   D0Re0,D1Ar1             ! Return neg remainder
	MOV     PC, D1RtP
	.size   ___modsi3,.-___modsi3
back to top