]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r312877 and r312878:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 7 Aug 2017 12:29:41 +0000 (12:29 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 7 Aug 2017 12:29:41 +0000 (12:29 +0000)
commit6fce4800611079467e2dc2a9c66736d07bcd586e
treee76e11cafa4009c9e65d22bfb6b1b57e00c933db
parentc6ef53fa26ea5f97fcabf2f7848924fe9a22c6fd
MFC r312877 and r312878:
Minor code refactor as a preparation step for suprise removal of CX-4
PCI device(s), changes:
- alloc_entry() now clears bit for page slot entry aswell
- update of cmd->ent_arr[] is now under cmd->alloc_lock
- complete command if alloc_entry() fails

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@322141 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/mlx5/mlx5_core/mlx5_cmd.c