David Luiz will undergo surgery after suffered a broken nose during Brazil's latest match in the Confederations Cup on Wednesday.