Avoid additional portlist lookup when setting port state

This commit is contained in:
dmiller 2024-02-26 23:10:50 +00:00
parent 073afa805d
commit 1a4d41a6b7
2 changed files with 11 additions and 8 deletions

View file

@ -268,7 +268,7 @@ class PortList {
void mapPort(u16 *portno, u8 *protocol) const;
/* Get Port structure from PortList structure.*/
const Port *lookupPort(u16 portno, u8 protocol) const;
Port *createPort(u16 portno, u8 protocol);
Port *createPort(u16 portno, u8 protocol, bool *created=NULL);
/* Set Port structure to PortList structure.*/
void setPortEntry(u16 portno, u8 protocol, Port *port);