Skip to content

Commit fc96b17

Browse files
committed
ff_config.c parse pci_whitelist to --allow, so config.ini use pci_whitelist
1 parent 2869cbf commit fc96b17

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

adapter/syscall/ff_hook_syscall.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ ff_hook_recv(int fd, void *buf, size_t len, int flags)
795795
}
796796

797797
ssize_t
798-
ff_hook___recv_chk(int fd, void *buf, size_t buflen, size_t len, int flags)
798+
ff_hook___recv_chk(int fd, void *buf, size_t len, size_t buflen, int flags)
799799
{
800800
DEBUG_LOG("ff_hook___recv_chk, fd:%d, buf:%p, len:%lu, flags:%d\n",
801801
fd, buf, len, flags);
@@ -1426,7 +1426,7 @@ ff_hook_read(int fd, void *buf, size_t len)
14261426
}
14271427

14281428
ssize_t
1429-
ff_hook___read_chk(int fd, void *buf, size_t nbytes, size_t len)
1429+
ff_hook___read_chk(int fd, void *buf, size_t nbytes, size_t buflen)
14301430
{
14311431
DEBUG_LOG("ff_hook___read_chk, fd:%d, buf:%p, len:%lu\n", fd, buf, len);
14321432

config.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ symmetric_rss=0
4545

4646
# PCI device enable list.
4747
# And driver options
48-
#allow=02:00.0
48+
#pci_whitelist=02:00.0
4949
# for multiple PCI devices
50-
#allow=02:00.0,03:00.0
50+
#pci_whitelist=02:00.0,03:00.0
5151

5252
# enabled port list
5353
#

0 commit comments

Comments
 (0)