]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/Ip4Dxe: fix a bug in IP4 driver for IpSec protocol notify.
authorFu Siyuan <siyuan.fu@intel.com>
Mon, 4 Sep 2017 08:04:13 +0000 (16:04 +0800)
committerFu Siyuan <siyuan.fu@intel.com>
Wed, 6 Sep 2017 06:57:29 +0000 (14:57 +0800)
commit5aae2d35de031a38e7812c615ff6bce36b31466a
tree04319399e1bba6a202a0fd55d1da2059666a114e
parent12cfc9009e7cf1a69ca675110c2cf6e21b152992
MdeModulePkg/Ip4Dxe: fix a bug in IP4 driver for IpSec protocol notify.

The IP driver uses EfiCreateProtocolNotifyEvent() to register notify callback
function for IpSec protocol, but it didn't notice that the callback will always
be executed at least once, even the protocol wasn't in handle database.
As a result, the Ip4IpSecProcessPacket() will still always call LocateProtocol()
even the IpSec protocol is not installed, which will impact the network
performance.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Driver.c
MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c