]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
virtchnl: do structure hardening
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Fri, 16 Dec 2022 20:06:57 +0000 (12:06 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 25 Jan 2023 16:55:19 +0000 (08:55 -0800)
commit4e4df55941f0784e08e0ab50b04a08c7e1c949eb
treebc02c5b5ed4632f51bec98b3a3ab69b4fb681b7a
parent43fc70a208ce848f2ec93dadf160ebcc77ec71e8
virtchnl: do structure hardening

The virtchnl interface can have a bunch of "soft" defined structures
hardened by using explicit sizes for declarations, and then referring to
the enum type that uses them in a comment. None of these changes should
change any of the structure sizes.

Also, remove a duplicate line in a switch statement and let two cases
uses the same code.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Marek Szlosek <marek.szlosek@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
include/linux/avf/virtchnl.h