1. Add DPC protocol and DpcLib library in MdeModulePkg.
2. Add DpcDxe module and DxeDpcLib module in MdeModulePkg 3. Port network stack module to use DPC. 4. Use MIN, and MAX defined in MdePkg to replace NET_MIN and NET_MAX. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4307 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -32,11 +32,11 @@ Abstract:
|
||||
//
|
||||
#define SIZEOF_IP4_CONFIG_INFO(Ip4Config) \
|
||||
(sizeof (EFI_IP4_IPCONFIG_DATA) + \
|
||||
sizeof (EFI_IP4_ROUTE_TABLE) * (NET_MAX (1, (Ip4Config)->RouteTableSize) - 1))
|
||||
sizeof (EFI_IP4_ROUTE_TABLE) * (MAX (1, (Ip4Config)->RouteTableSize) - 1))
|
||||
|
||||
#define SIZEOF_NIC_IP4_CONFIG_INFO(NicConfig) \
|
||||
(sizeof (NIC_IP4_CONFIG_INFO) + \
|
||||
sizeof (EFI_IP4_ROUTE_TABLE) * (NET_MAX (1, (NicConfig)->Ip4Info.RouteTableSize) - 1))
|
||||
sizeof (EFI_IP4_ROUTE_TABLE) * (MAX (1, (NicConfig)->Ip4Info.RouteTableSize) - 1))
|
||||
|
||||
//
|
||||
// Compare whether two NIC address are equal includes their type and length.
|
||||
|
Reference in New Issue
Block a user