]> git.proxmox.com Git - mirror_edk2.git/commit
NetworkPkg/Ip6Dxe: fix a bug in IP6 driver for IpSec protocol notify.
authorFu Siyuan <siyuan.fu@intel.com>
Mon, 4 Sep 2017 08:04:53 +0000 (16:04 +0800)
committerFu Siyuan <siyuan.fu@intel.com>
Wed, 6 Sep 2017 06:57:45 +0000 (14:57 +0800)
commit9a04dcffbb1e59333e500a8ce66e01a562be8b4f
treebcbd97d26dadaeaa8cec12d3f67881cfc8aff7b2
parent5aae2d35de031a38e7812c615ff6bce36b31466a
NetworkPkg/Ip6Dxe: fix a bug in IP6 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 Ip6IpSecProcessPacket() 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>
NetworkPkg/Ip6Dxe/Ip6Driver.c
NetworkPkg/Ip6Dxe/Ip6Input.c