HomeFreeBSD

thunderx: fix potential sign extension issue

Description

thunderx: fix potential sign extension issue

Coverity reported a sign extension issue on rq->caching << 26 in the
Linux ThunderX driver. (It appears Coverity Scan doesn't build arm64
objects in FreeBSD.)

As done in Linux, add a cast.

Fixes: 3c0086b81391 ("Raw import of ThunderX VNIC networking driver...")
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 5e95f5f5315083baa7d98d3286f6c0a82621a68e)

Details

Provenance
emasteAuthored on Feb 28 2023, 7:17 PM
Parents
rGb562307b7034: freebsd-update: use grep -E instead of egrep
Branches
Unknown
Tags
Unknown