Skip to content

Commit

Permalink
eal: document LcoreToSocket
Browse files Browse the repository at this point in the history
Signed-off-by: Yerden Zhumabekov <yerden.zhumabekov@gmail.com>
  • Loading branch information
yerden committed Oct 30, 2019
1 parent cb5743f commit 87d07b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eal/eal.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func (lc *Lcore) SocketID() uint {
return uint(C.rte_socket_id())
}

// LcoreToSocket return socket id for given lcore ID.
func LcoreToSocket(id uint) uint {
return uint(C.rte_lcore_to_socket_id(C.uint(id)))
}
Expand Down

0 comments on commit 87d07b5

Please sign in to comment.